mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
don't zero an OEM_STRING with sizeof(UNICODE_STRING)
svn path=/trunk/; revision=27404
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user