https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c7022c1b0c9b8e991aed113464253fd78ae4ee48

commit c7022c1b0c9b8e991aed113464253fd78ae4ee48
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Sat Jul 7 18:56:40 2018 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Sat Jul 7 18:58:03 2018 +0200

    [KERNEL32] Use NULL for pointers.
---
 dll/win32/kernel32/client/proc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dll/win32/kernel32/client/proc.c b/dll/win32/kernel32/client/proc.c
index 649dcd4f41..551723e3b7 100644
--- a/dll/win32/kernel32/client/proc.c
+++ b/dll/win32/kernel32/client/proc.c
@@ -1395,9 +1395,9 @@ GetStartupInfoA(IN LPSTARTUPINFOA lpStartupInfo)
         if (StartupInfo)
         {
             /* Zero out string pointers in case we fail to create them */
-            StartupInfo->lpReserved = 0;
-            StartupInfo->lpDesktop = 0;
-            StartupInfo->lpTitle = 0;
+            StartupInfo->lpReserved = NULL;
+            StartupInfo->lpDesktop = NULL;
+            StartupInfo->lpTitle = NULL;
 
             /* Set the size */
             StartupInfo->cb = sizeof(*StartupInfo);
@@ -2425,7 +2425,7 @@ CreateProcessInternalW(IN HANDLE hUserToken,
     DebuggerCmdLine = NULL;
     PathBuffer = NULL;
     SearchPath = NULL;
-    NullBuffer = 0;
+    NullBuffer = NULL;
     FreeBuffer = NULL;
     NameBuffer = NULL;
     CurrentDirectory = NULL;

Reply via email to