[ros-diffs] [tkreuzer] 41044: Cast NULL to DWORD?

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri May 22 23:52:29 CEST 2009


Author: tkreuzer
Date: Sat May 23 01:52:28 2009
New Revision: 41044

URL: http://svn.reactos.org/svn/reactos?rev=41044&view=rev
Log:
Cast NULL to DWORD?

Modified:
    branches/ros-amd64-bringup/reactos/dll/win32/powrprof/powrprof.c

Modified: branches/ros-amd64-bringup/reactos/dll/win32/powrprof/powrprof.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/powrprof/powrprof.c?rev=41044&r1=41043&r2=41044&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/powrprof/powrprof.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/powrprof/powrprof.c [iso-8859-1] Sat May 23 01:52:28 2009
@@ -633,7 +633,7 @@
                     &hKey))
         return FALSE;
 
-    if (RegSetValueExW(hKey,szPolicies,(DWORD)NULL,REG_BINARY,(const unsigned char *)&gupp,sizeof(GLOBAL_USER_POWER_POLICY)) == ERROR_SUCCESS)
+    if (RegSetValueExW(hKey,szPolicies,0,REG_BINARY,(const unsigned char *)&gupp,sizeof(GLOBAL_USER_POWER_POLICY)) == ERROR_SUCCESS)
     {
         RegCloseKey(hKey);
 
@@ -644,7 +644,7 @@
                        &hKey))
             return FALSE;
 
-        if (RegSetValueExW(hKey,szPolicies,(DWORD)NULL,REG_BINARY,(const unsigned char *)&gmpp,sizeof(GLOBAL_MACHINE_POWER_POLICY)) == ERROR_SUCCESS)
+        if (RegSetValueExW(hKey,szPolicies,0,REG_BINARY,(const unsigned char *)&gmpp,sizeof(GLOBAL_MACHINE_POWER_POLICY)) == ERROR_SUCCESS)
         {
             RegCloseKey(hKey);
             return TRUE;



More information about the Ros-diffs mailing list