Author: pschweitzer
Date: Tue Sep 20 13:53:25 2011
New Revision: 53772
URL:
http://svn.reactos.org/svn/reactos?rev=53772&view=rev
Log:
[KERNEL32]
Fix wrong sizeof usage
Modified:
trunk/reactos/dll/win32/kernel32/client/power.c
Modified: trunk/reactos/dll/win32/kernel32/client/power.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/power.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/power.c [iso-8859-1] Tue Sep 20 13:53:25 2011
@@ -40,7 +40,7 @@
return FALSE;
}
- RtlZeroMemory(PowerStatus, sizeof(LPSYSTEM_POWER_STATUS));
+ RtlZeroMemory(PowerStatus, sizeof(SYSTEM_POWER_STATUS));
PowerStatus->BatteryLifeTime = BATTERY_LIFE_UNKNOWN;
PowerStatus->BatteryFullLifeTime = BATTERY_LIFE_UNKNOWN;