Skip to content

Commit

Permalink
[KBM] supress warning (#10983)
Browse files Browse the repository at this point in the history
  • Loading branch information
enricogior authored Apr 27, 2021
1 parent 2c2cd3f commit 4279d6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/keyboardmanager/dll/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ class KeyboardManager : public PowertoyModuleIface
else
{
m_hProcess = sei.hProcess;
SetPriorityClass(m_hProcess, REALTIME_PRIORITY_CLASS);
if (m_hProcess)
{
SetPriorityClass(m_hProcess, REALTIME_PRIORITY_CLASS);
}
}
}

Expand Down

0 comments on commit 4279d6c

Please sign in to comment.