[KBM] supress warning (#10983)

This commit is contained in:
Enrico Giordani 2021-04-27 11:13:30 -07:00 committed by GitHub
parent 2c2cd3fde2
commit 4279d6c067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,10 @@ public:
else
{
m_hProcess = sei.hProcess;
SetPriorityClass(m_hProcess, REALTIME_PRIORITY_CLASS);
if (m_hProcess)
{
SetPriorityClass(m_hProcess, REALTIME_PRIORITY_CLASS);
}
}
}