From 9551666fbf60b707e997d3dc046e6c34044b2386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bo=20Brant=C3=A9n?= Date: Mon, 18 May 2020 23:56:05 +0200 Subject: [PATCH] corrected the initialization of three arrays --- Ext4Fsd/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ext4Fsd/memory.c b/Ext4Fsd/memory.c index 81f8bd7..2fdde1f 100644 --- a/Ext4Fsd/memory.c +++ b/Ext4Fsd/memory.c @@ -2068,9 +2068,9 @@ Ext2ParseRegistryVolumeParams( USHORT i, j, k; - RtlZeroMemory(Codepage, CODEPAGE_MAXLEN); - RtlZeroMemory(Prefix, HIDINGPAT_LEN); - RtlZeroMemory(Suffix, HIDINGPAT_LEN); + RtlZeroMemory(Codepage, sizeof(WCHAR) * CODEPAGE_MAXLEN); + RtlZeroMemory(Prefix, sizeof(WCHAR) * HIDINGPAT_LEN); + RtlZeroMemory(Suffix, sizeof(WCHAR) * HIDINGPAT_LEN); RtlZeroMemory(MountPoint, sizeof(USHORT) * 4); RtlZeroMemory(DrvLetter, sizeof(CHAR) * 4);