mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-07 05:12:22 -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.