don't zero an OEM_STRING with sizeof(UNICODE_STRING)

svn path=/trunk/; revision=27404
This commit is contained in:
Christoph von Wittich 2007-07-05 11:10:08 +00:00
parent e2651a0dbc
commit 28e26ae6bc

View file

@ -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;