mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(libT) #1482: fix another win32-related preallocate bug. Thanks to Spry and Lubomir for fixing my bugs. ;)
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user