mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-01 04:08:25 -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.