mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +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;
|
NTSTATUS Status;
|
||||||
|
|
||||||
_FileOffset.QuadPart = *FileOffset;
|
_FileOffset.QuadPart = *FileOffset;
|
||||||
Status = ZwReadFile(HiveHandle, 0, 0, 0, &IoStatusBlock,
|
Status = ZwReadFile(HiveHandle, NULL, NULL, NULL, &IoStatusBlock,
|
||||||
Buffer, (ULONG)BufferLength, &_FileOffset, 0);
|
Buffer, (ULONG)BufferLength, &_FileOffset, NULL);
|
||||||
return NT_SUCCESS(Status) ? TRUE : FALSE;
|
return NT_SUCCESS(Status) ? TRUE : FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3622,7 +3622,7 @@ KdbpCliInit(VOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load file into memory */
|
/* 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);
|
ZwClose(hFile);
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
|
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
|
||||||
|
|
|
@ -19,11 +19,11 @@ RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
|
||||||
IO_STATUS_BLOCK IoStatusBlock;
|
IO_STATUS_BLOCK IoStatusBlock;
|
||||||
|
|
||||||
Status = ZwReadFile(*((HANDLE *) FileContext),
|
Status = ZwReadFile(*((HANDLE *) FileContext),
|
||||||
0, 0, 0,
|
NULL, NULL, NULL,
|
||||||
&IoStatusBlock,
|
&IoStatusBlock,
|
||||||
Buffer,
|
Buffer,
|
||||||
Size,
|
Size,
|
||||||
0, 0);
|
NULL, NULL);
|
||||||
|
|
||||||
return NT_SUCCESS(Status) && IoStatusBlock.Information == Size;
|
return NT_SUCCESS(Status) && IoStatusBlock.Information == Size;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,11 +18,11 @@ RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
|
||||||
IO_STATUS_BLOCK IoStatusBlock;
|
IO_STATUS_BLOCK IoStatusBlock;
|
||||||
|
|
||||||
RosSymStatus = ZwReadFile(*((HANDLE *) FileContext),
|
RosSymStatus = ZwReadFile(*((HANDLE *) FileContext),
|
||||||
0, 0, 0,
|
NULL, NULL, NULL,
|
||||||
&IoStatusBlock,
|
&IoStatusBlock,
|
||||||
Buffer,
|
Buffer,
|
||||||
Size,
|
Size,
|
||||||
0, 0);
|
NULL, NULL);
|
||||||
|
|
||||||
return NT_SUCCESS(RosSymStatus) && IoStatusBlock.Information == Size;
|
return NT_SUCCESS(RosSymStatus) && IoStatusBlock.Information == Size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue