Fixing file position default value.
This commit is contained in:
parent
e919edfb33
commit
0c19516de4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue