mirror of https://github.com/aria2/aria2
parent
3cf156240b
commit
e818f9c8a5
|
@ -212,7 +212,7 @@ void AbstractDiskWriter::truncate(uint64_t length)
|
|||
HANDLE handle = LongToHandle(_get_osfhandle(fd_));
|
||||
seek(length);
|
||||
if(SetEndOfFile(handle) == 0) {
|
||||
throw DL_ABORT_EX2(fmt("SetEndOfFile failed. cause: %s",
|
||||
throw DL_ABORT_EX2(fmt("SetEndOfFile failed. cause: %lx",
|
||||
GetLastError()),
|
||||
error_code::FILE_IO_ERROR);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue