From 28e26ae6bc5eb68161fbb24ad8e16b13092e8510 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 5 Jul 2007 11:10:08 +0000 Subject: [PATCH] don't zero an OEM_STRING with sizeof(UNICODE_STRING) svn path=/trunk/; revision=27404 --- reactos/lib/rtl/unicode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/rtl/unicode.c b/reactos/lib/rtl/unicode.c index 7c39bdee69f..2089c5d26c6 100644 --- a/reactos/lib/rtl/unicode.c +++ b/reactos/lib/rtl/unicode.c @@ -1417,7 +1417,7 @@ RtlUnicodeStringToCountedOemString( if (!Length) { - RtlZeroMemory(OemDest, sizeof(UNICODE_STRING)); + RtlZeroMemory(OemDest, sizeof(OEM_STRING)); } if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2; @@ -1619,7 +1619,7 @@ RtlUpcaseUnicodeStringToCountedOemString( if (!Length) { - RtlZeroMemory(OemDest, sizeof(UNICODE_STRING)); + RtlZeroMemory(OemDest, sizeof(OEM_STRING)); } if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;