mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOSKRNL][ROSSYM] ZwReadFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910
This commit is contained in:
parent
21f0b163a7
commit
11baa0d723
4 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue