From 6c6375486110d191e852422b323cff82f1f6e63b Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 12 Mar 2016 17:01:39 +0000 Subject: [PATCH 1/1] [BOOTLIB] Fix some invalid sizeof() usage svn path=/trunk/; revision=70996 --- reactos/boot/environ/lib/misc/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/boot/environ/lib/misc/image.c b/reactos/boot/environ/lib/misc/image.c index fd51887496a..42c194ec401 100644 --- a/reactos/boot/environ/lib/misc/image.c +++ b/reactos/boot/environ/lib/misc/image.c @@ -1456,7 +1456,7 @@ BlImgLoadBootApplication ( } /* Zero it out */ - RtlZeroMemory(AppEntry, sizeof(AppEntry)); + RtlZeroMemory(AppEntry, sizeof(*AppEntry)); /* Initialize it */ strcpy(AppEntry->Signature, "BTAPENT"); @@ -1493,7 +1493,7 @@ BlImgLoadBootApplication ( } /* Zero out the entries for now */ - RtlZeroMemory(IapImageTable, sizeof(IapTableEntries * sizeof(PVOID))); + RtlZeroMemory(IapImageTable, IapTableEntries * sizeof(PVOID)); } /* Set this entry into the table */ -- 2.17.1