Author: pschweitzer
Date: Sat Mar 12 17:01:39 2016
New Revision: 70996
URL:
http://svn.reactos.org/svn/reactos?rev=70996&view=rev
Log:
[BOOTLIB]
Fix some invalid sizeof() usage
Modified:
trunk/reactos/boot/environ/lib/misc/image.c
Modified: trunk/reactos/boot/environ/lib/misc/image.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/environ/lib/misc/imag…
==============================================================================
--- trunk/reactos/boot/environ/lib/misc/image.c [iso-8859-1] (original)
+++ trunk/reactos/boot/environ/lib/misc/image.c [iso-8859-1] Sat Mar 12 17:01:39 2016
@@ -1456,7 +1456,7 @@
}
/* Zero it out */
- RtlZeroMemory(AppEntry, sizeof(AppEntry));
+ RtlZeroMemory(AppEntry, sizeof(*AppEntry));
/* Initialize it */
strcpy(AppEntry->Signature, "BTAPENT");
@@ -1493,7 +1493,7 @@
}
/* Zero out the entries for now */
- RtlZeroMemory(IapImageTable, sizeof(IapTableEntries * sizeof(PVOID)));
+ RtlZeroMemory(IapImageTable, IapTableEntries * sizeof(PVOID));
}
/* Set this entry into the table */