Author: cwittich Date: Thu Jul 5 15:10:08 2007 New Revision: 27404
URL: http://svn.reactos.org/svn/reactos?rev=27404&view=rev Log: don't zero an OEM_STRING with sizeof(UNICODE_STRING)
Modified: trunk/reactos/lib/rtl/unicode.c
Modified: trunk/reactos/lib/rtl/unicode.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/unicode.c?rev=27404... ============================================================================== --- trunk/reactos/lib/rtl/unicode.c (original) +++ trunk/reactos/lib/rtl/unicode.c Thu Jul 5 15:10:08 2007 @@ -1417,7 +1417,7 @@
if (!Length) { - RtlZeroMemory(OemDest, sizeof(UNICODE_STRING)); + RtlZeroMemory(OemDest, sizeof(OEM_STRING)); }
if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2; @@ -1619,7 +1619,7 @@
if (!Length) { - RtlZeroMemory(OemDest, sizeof(UNICODE_STRING)); + RtlZeroMemory(OemDest, sizeof(OEM_STRING)); }
if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;