return -1 on failure on truncating file
This commit is contained in:
parent
32dfc469c3
commit
0d3eb71ba1
|
@ -1468,6 +1468,7 @@ namespace libtorrent
|
|||
if (!NT_SUCCESS(st))
|
||||
{
|
||||
ec.assign(INVALID_SET_FILE_POINTER, get_system_category());
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue