diff --git a/src/file.cpp b/src/file.cpp index cf04edfd0..6ac256211 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1612,6 +1612,12 @@ namespace libtorrent } 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;