[NTOSKRNL][ROSSYM] ZwReadFile() calls: Use explicit NULL instead of ambiguous 0....
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Wed, 25 Oct 2017 11:57:27 +0000 (13:57 +0200)
committerThomas Faber <ThFabba@users.noreply.github.com>
Fri, 27 Oct 2017 11:38:02 +0000 (13:38 +0200)
ntoskrnl/config/cmwraprs.c
ntoskrnl/kdbg/kdb_cli.c
sdk/lib/rossym/zwfile.c
sdk/lib/rossym_new/zwfile.c

index a3948b9..fa864a8 100644 (file)
@@ -83,8 +83,8 @@ CmpFileRead(IN PHHIVE RegistryHive,
     NTSTATUS Status;
 
     _FileOffset.QuadPart = *FileOffset;
-    Status = ZwReadFile(HiveHandle, 0, 0, 0, &IoStatusBlock,
-                       Buffer, (ULONG)BufferLength, &_FileOffset, 0);
+    Status = ZwReadFile(HiveHandle, NULL, NULL, NULL, &IoStatusBlock,
+                        Buffer, (ULONG)BufferLength, &_FileOffset, NULL);
     return NT_SUCCESS(Status) ? TRUE : FALSE;
 }
 
index 168dca0..d5e7fde 100644 (file)
@@ -3622,7 +3622,7 @@ KdbpCliInit(VOID)
     }
 
     /* Load file into memory */
-    Status = ZwReadFile(hFile, 0, 0, 0, &Iosb, FileBuffer, FileSize, 0, 0);
+    Status = ZwReadFile(hFile, NULL, NULL, NULL, &Iosb, FileBuffer, FileSize, NULL, NULL);
     ZwClose(hFile);
 
     if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
index f4d7e6b..7711014 100644 (file)
@@ -19,11 +19,11 @@ RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
   IO_STATUS_BLOCK IoStatusBlock;
 
   Status = ZwReadFile(*((HANDLE *) FileContext),
-                      0, 0, 0,
+                      NULL, NULL, NULL,
                       &IoStatusBlock,
                       Buffer,
                       Size,
-                      0, 0);
+                      NULL, NULL);
 
   return NT_SUCCESS(Status) && IoStatusBlock.Information == Size;
 }
index 99556e4..631979c 100644 (file)
@@ -18,11 +18,11 @@ RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
   IO_STATUS_BLOCK IoStatusBlock;
 
   RosSymStatus = ZwReadFile(*((HANDLE *) FileContext),
-                      0, 0, 0,
+                      NULL, NULL, NULL,
                       &IoStatusBlock,
                       Buffer,
                       Size,
-                      0, 0);
+                      NULL, NULL);
 
   return NT_SUCCESS(RosSymStatus) && IoStatusBlock.Information == Size;
 }