mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +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 */
|
/* Get size to append data */
|
||||||
Size.QuadPart = GetRemoteDatabaseSize(Database);
|
Size.QuadPart = GetRemoteDatabaseSize(Database);
|
||||||
|
|
||||||
return ZwWriteFile(Database, 0, NULL, NULL,
|
return ZwWriteFile(Database, NULL, NULL, NULL,
|
||||||
&IoStatusBlock, Entry,
|
&IoStatusBlock, Entry,
|
||||||
Entry->EntrySize, &Size, NULL);
|
Entry->EntrySize, &Size, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,8 +103,8 @@ CmpFileWrite(IN PHHIVE RegistryHive,
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
_FileOffset.QuadPart = *FileOffset;
|
_FileOffset.QuadPart = *FileOffset;
|
||||||
Status = ZwWriteFile(HiveHandle, 0, 0, 0, &IoStatusBlock,
|
Status = ZwWriteFile(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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue