return -1 on failure on truncating file

This commit is contained in:
Arvid Norberg 2011-11-02 09:07:54 +00:00
parent 32dfc469c3
commit 0d3eb71ba1
1 changed files with 1 additions and 0 deletions

View File

@ -1468,6 +1468,7 @@ namespace libtorrent
if (!NT_SUCCESS(st))
{
ec.assign(INVALID_SET_FILE_POINTER, get_system_category());
return -1;
}
}
}