fail properly if NtSetFileInformation cannot be loaded

This commit is contained in:
Arvid Norberg
2012-02-22 09:29:07 +00:00
parent 28e74a79b7
commit f1365a7a52

View File

@@ -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;