another windows file IO fix
This commit is contained in:
parent
52aa441818
commit
ee5a76fa65
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue