mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[MOUNTMGR][NTOSKRNL] ZwWriteFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910
This commit is contained in:
parent
ee019e12fa
commit
abb6ad90f5
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ AddRemoteDatabaseEntry(IN HANDLE Database,
|
|||
/* Get size to append data */
|
||||
Size.QuadPart = GetRemoteDatabaseSize(Database);
|
||||
|
||||
return ZwWriteFile(Database, 0, NULL, NULL,
|
||||
return ZwWriteFile(Database, NULL, NULL, NULL,
|
||||
&IoStatusBlock, Entry,
|
||||
Entry->EntrySize, &Size, NULL);
|
||||
}
|
||||
|
|
|
@ -103,8 +103,8 @@ CmpFileWrite(IN PHHIVE RegistryHive,
|
|||
NTSTATUS Status;
|
||||
|
||||
_FileOffset.QuadPart = *FileOffset;
|
||||
Status = ZwWriteFile(HiveHandle, 0, 0, 0, &IoStatusBlock,
|
||||
Buffer, (ULONG)BufferLength, &_FileOffset, 0);
|
||||
Status = ZwWriteFile(HiveHandle, NULL, NULL, NULL, &IoStatusBlock,
|
||||
Buffer, (ULONG)BufferLength, &_FileOffset, NULL);
|
||||
return NT_SUCCESS(Status) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue