fail properly if NtSetFileInformation cannot be loaded
This commit is contained in:
@@ -1612,6 +1612,12 @@ namespace libtorrent
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// couldn't find ntdll or NtSetFileInformation function
|
||||||
|
// and the file is opened in unbuffered mode! There's
|
||||||
|
// nothing we can do! (short of re-opening the file, but
|
||||||
|
// that introduces all sorts of nasty race conditions)
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
LARGE_INTEGER offs;
|
LARGE_INTEGER offs;
|
||||||
|
Reference in New Issue
Block a user