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/w…
==============================================================================
--- 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;