[MOUNTMGR][NTOSKRNL] ZwWriteFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910

This commit is contained in:
Serge Gautherie 2017-10-28 17:02:24 +02:00 committed by Pierre Schweitzer
parent ee019e12fa
commit abb6ad90f5
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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;
}