(libT) #1482: fix another win32-related preallocate bug. Thanks to Spry and Lubomir for fixing my bugs. ;)

This commit is contained in:
Charles Kerr
2008-11-19 17:48:24 +00:00
parent ed95969380
commit 6116a00c0b
+1 -2
View File
@@ -111,8 +111,7 @@ preallocateFile( const char * filename, uint64_t length )
{
LARGE_INTEGER li;
li.QuadPart = length;
success = SetFilePointerEx( hFile, length, NULL, FILE_BEGIN )
&& SetEndOfFile( hFile );
success = SetFilePointerEx( hFile, li, NULL, FILE_BEGIN ) && SetEndOfFile( hFile );
CloseHandle( hFile );
}