mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
win-capture/graphics-hook: Fix OBS detection
Fixes where the graphics hook would try to detect if OBS is currently active or not.
This commit is contained in:
@@ -150,11 +150,7 @@ static inline bool capture_alive(void)
|
||||
{
|
||||
HANDLE handle = OpenMutexW(SYNCHRONIZE, false, keepalive_name);
|
||||
CloseHandle(handle);
|
||||
|
||||
if (handle)
|
||||
return true;
|
||||
|
||||
return GetLastError() != ERROR_FILE_NOT_FOUND;
|
||||
return handle != NULL && handle != INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
||||
static inline bool capture_active(void)
|
||||
|
||||
Reference in New Issue
Block a user