Fixing file position default value.

This commit is contained in:
Ben Vanik 2013-10-20 15:05:09 -07:00
parent e919edfb33
commit 0c19516de4
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ SHIM_CALL NtReadFile_shim(
// TODO(benvanik): async path.
if (true) {
// Synchronous request.
if (byte_offset == 0xFFFFFFFFfffffffe) {
if (!byte_offset_ptr ||
byte_offset == 0xFFFFFFFFfffffffe) {
// FILE_USE_FILE_POINTER_POSITION
byte_offset = -1;
}