win32 compile fixes

This commit is contained in:
Mark Vejvoda
2010-04-30 23:30:15 +00:00
parent fd2274775e
commit 5cf84e8a2a
6 changed files with 18 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ inline bool acquire_file_lock(int hnd)
return -1 != ::fcntl(hnd, F_SETLK, &lock);
#else
HANDLE hFile = (HANDLE)_get_osfhandle(hnd);
return true == ::LockFile(hFile, 0, 0, 0, -0x10000);
return TRUE == ::LockFile(hFile, 0, 0, 0, -0x10000);
#endif
}