https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4c1cbd2b53d599cb23c16…
commit 4c1cbd2b53d599cb23c167f52b1c80befb65e1b3
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Apr 7 08:58:46 2019 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sun Apr 7 18:32:29 2019 +0200
[EXT2] Add __REACTOS__ check around changes done in
76910c358f7197a6b8e283ea267faf7b5c1812ff
---
drivers/filesystems/ext2/src/memory.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/filesystems/ext2/src/memory.c
b/drivers/filesystems/ext2/src/memory.c
index cf569f40cd..f0eaac5e12 100644
--- a/drivers/filesystems/ext2/src/memory.c
+++ b/drivers/filesystems/ext2/src/memory.c
@@ -2072,9 +2072,15 @@ Ext2ParseRegistryVolumeParams(
USHORT i, j, k;
+#ifdef __REACTOS__
RtlZeroMemory(Codepage, sizeof(WCHAR) * CODEPAGE_MAXLEN);
RtlZeroMemory(Prefix, sizeof(WCHAR) * HIDINGPAT_LEN);
RtlZeroMemory(Suffix, sizeof(WCHAR) * HIDINGPAT_LEN);
+#else
+ RtlZeroMemory(Codepage, CODEPAGE_MAXLEN);
+ RtlZeroMemory(Prefix, HIDINGPAT_LEN);
+ RtlZeroMemory(Suffix, HIDINGPAT_LEN);
+#endif
RtlZeroMemory(MountPoint, sizeof(USHORT) * 4);
RtlZeroMemory(DrvLetter, sizeof(CHAR) * 4);