another windows file IO fix

This commit is contained in:
Arvid Norberg 2009-01-11 18:10:52 +00:00
parent 52aa441818
commit ee5a76fa65
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ namespace libtorrent
LARGE_INTEGER offs; LARGE_INTEGER offs;
offs.QuadPart = file_size; offs.QuadPart = file_size;
if (SetFilePointerEx(m_file_handle, offs, &offs, FILE_BEGIN) == FALSE) if (SetFilePointerEx(f, offs, &offs, FILE_BEGIN) == FALSE)
{ {
CloseHandle(f); CloseHandle(f);
ec = error_code(GetLastError(), get_system_category()); ec = error_code(GetLastError(), get_system_category());