mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-30 11:19:18 -04:00
CreateFileW returns INVALID_HANDLE_VALUE on failure, not NULL. The previous check would always evaluate to true on failure, causing ReadFile and CloseHandle to be called on an invalid handle.