Under "normal conditions" sizeof of an array covers the whole array. is this
different for function paramters?
Am 06.02.2011 14:50, schrieb pschweitzer(a)svn.reactos.org:
Author: pschweitzer
Date: Sun Feb 6 13:50:57 2011
New Revision: 50612
URL:
http://svn.reactos.org/svn/reactos?rev=50612&view=rev
Log:
[NTOSKRNL/PPC]
Fix the fix, spotted by "ThFabba" on IRC
Modified:
trunk/reactos/ntoskrnl/ke/powerpc/cpu.c
Modified: trunk/reactos/ntoskrnl/ke/powerpc/cpu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/powerpc/cpu.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/powerpc/cpu.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/powerpc/cpu.c [iso-8859-1] Sun Feb 6
13:50:57 2011
@@ -44,7 +44,7 @@
CPUID(IN ULONG CpuInfo[4],
IN ULONG InfoType)
{
- RtlZeroMemory(CpuInfo, sizeof(CpuInfo) * sizeof(ULONG));
+ RtlZeroMemory(CpuInfo, 4 * sizeof(ULONG));
}
VOID
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.org