https://git.reactos.org/?p=reactos.git;a=commitdiff;h=abb6ad90f5a8685c63fea…
commit abb6ad90f5a8685c63fea9ecb42daf882db25e8f
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Sat Oct 28 17:02:24 2017 +0200
[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 d99f0ece80..6b760a135f 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 fa864a8fb5..031dc77c00 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;
}