Fix broken return checks on CreateFile() on Win32
Fix broken return checks on CreateFile() on Win32

CreateFile() returns INVALID_HANDLE_VALUE not NULL. Gotta love this
trap.
See https://blogs.msdn.microsoft.com/oldnewthing/20040302-00/?p=40443

Koromix/ty,Koromix/tytools,Koromix/tytools,Koromix/ty,Koromix/ty,Koromix/tytools