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:
parent
edc509c642
commit
db789cfa44
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user