diff --git a/drivers/filters/mountmgr/database.c b/drivers/filters/mountmgr/database.c index d99f0ece808..6b760a135f0 100644 --- a/drivers/filters/mountmgr/database.c +++ b/drivers/filters/mountmgr/database.c @@ -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); } diff --git a/ntoskrnl/config/cmwraprs.c b/ntoskrnl/config/cmwraprs.c index fa864a8fb52..031dc77c00d 100644 --- a/ntoskrnl/config/cmwraprs.c +++ b/ntoskrnl/config/cmwraprs.c @@ -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; }