[NTOSKRNL][ROSSYM] ZwReadFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910

This commit is contained in:
Serge Gautherie 2017-10-25 13:57:27 +02:00 committed by Thomas Faber
parent 21f0b163a7
commit 11baa0d723
4 changed files with 7 additions and 7 deletions

View file

@ -83,8 +83,8 @@ CmpFileRead(IN PHHIVE RegistryHive,
NTSTATUS Status;
_FileOffset.QuadPart = *FileOffset;
Status = ZwReadFile(HiveHandle, 0, 0, 0, &IoStatusBlock,
Buffer, (ULONG)BufferLength, &_FileOffset, 0);
Status = ZwReadFile(HiveHandle, NULL, NULL, NULL, &IoStatusBlock,
Buffer, (ULONG)BufferLength, &_FileOffset, NULL);
return NT_SUCCESS(Status) ? TRUE : FALSE;
}

View file

@ -3622,7 +3622,7 @@ KdbpCliInit(VOID)
}
/* Load file into memory */
Status = ZwReadFile(hFile, 0, 0, 0, &Iosb, FileBuffer, FileSize, 0, 0);
Status = ZwReadFile(hFile, NULL, NULL, NULL, &Iosb, FileBuffer, FileSize, NULL, NULL);
ZwClose(hFile);
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)

View file

@ -19,11 +19,11 @@ RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
IO_STATUS_BLOCK IoStatusBlock;
Status = ZwReadFile(*((HANDLE *) FileContext),
0, 0, 0,
NULL, NULL, NULL,
&IoStatusBlock,
Buffer,
Size,
0, 0);
NULL, NULL);
return NT_SUCCESS(Status) && IoStatusBlock.Information == Size;
}

View file

@ -18,11 +18,11 @@ RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
IO_STATUS_BLOCK IoStatusBlock;
RosSymStatus = ZwReadFile(*((HANDLE *) FileContext),
0, 0, 0,
NULL, NULL, NULL,
&IoStatusBlock,
Buffer,
Size,
0, 0);
NULL, NULL);
return NT_SUCCESS(RosSymStatus) && IoStatusBlock.Information == Size;
}