another windows file IO fix

This commit is contained in:
Arvid Norberg
2009-01-11 18:10:52 +00:00
parent 52aa441818
commit ee5a76fa65

View File

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