[EXT2] Correctly zero memory before using it

This commit is contained in:
Hervé Poussineau 2019-03-30 23:06:27 +01:00
parent c8719ee865
commit 76910c358f

View file

@ -2072,9 +2072,9 @@ Ext2ParseRegistryVolumeParams(
USHORT i, j, k; USHORT i, j, k;
RtlZeroMemory(Codepage, CODEPAGE_MAXLEN); RtlZeroMemory(Codepage, sizeof(WCHAR) * CODEPAGE_MAXLEN);
RtlZeroMemory(Prefix, HIDINGPAT_LEN); RtlZeroMemory(Prefix, sizeof(WCHAR) * HIDINGPAT_LEN);
RtlZeroMemory(Suffix, HIDINGPAT_LEN); RtlZeroMemory(Suffix, sizeof(WCHAR) * HIDINGPAT_LEN);
RtlZeroMemory(MountPoint, sizeof(USHORT) * 4); RtlZeroMemory(MountPoint, sizeof(USHORT) * 4);
RtlZeroMemory(DrvLetter, sizeof(CHAR) * 4); RtlZeroMemory(DrvLetter, sizeof(CHAR) * 4);