mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[MOUNTMGR][NTOSKRNL] ZwWriteFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910
This commit is contained in:
committed by
Pierre Schweitzer
parent
ee019e12fa
commit
abb6ad90f5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user