Skip to content

Commit

Permalink
Only proceed if we actually have a handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Mar 16, 2024
1 parent 28d986a commit 19e7786
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/tabs/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,13 +776,16 @@ SKIF_UI_Tab_DrawSettings (void)
{
SteamProcessHandle = OpenProcess (SYNCHRONIZE, FALSE, pe32.th32ProcessID);

// Wait on all tabs as well...
for (auto& vWatchHandle : vWatchHandles)
vWatchHandle.push_back (SteamProcessHandle);
if (SteamProcessHandle != NULL)
{
// Wait on all tabs as well...
for (auto& vWatchHandle : vWatchHandles)
vWatchHandle.push_back (SteamProcessHandle);

// Signal the Steam client to exit
PLOG_INFO << "Shutting down the Steam client...";
SKIF_Util_OpenURI (L"steam://exit");
// Signal the Steam client to exit
PLOG_INFO << "Shutting down the Steam client...";
SKIF_Util_OpenURI (L"steam://exit");
}
}
}

Expand Down

0 comments on commit 19e7786

Please sign in to comment.