From abb6ad90f5a8685c63fea9ecb42daf882db25e8f Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Sat, 28 Oct 2017 17:02:24 +0200 Subject: [PATCH] [MOUNTMGR][NTOSKRNL] ZwWriteFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910 --- drivers/filters/mountmgr/database.c | 2 +- ntoskrnl/config/cmwraprs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }