virtualcam-module: Return S_FALSE if locks non-zero

The code mistakenly was returning S_OK if non-zero, which would have
been the opposite of what was intended.
This commit is contained in:
jp9000 2022-07-26 07:10:24 -07:00
parent edc509c642
commit db789cfa44

View File

@ -252,7 +252,7 @@ STDAPI DllInstall(BOOL install, LPCWSTR)
STDAPI DllCanUnloadNow()
{
return os_atomic_load_long(&locks) ? S_OK : S_FALSE;
return os_atomic_load_long(&locks) ? S_FALSE : S_OK;
}
STDAPI DllGetClassObject(REFCLSID cls, REFIID riid, void **p_ptr)