mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +00:00
don't zero an OEM_STRING with sizeof(UNICODE_STRING)
svn path=/trunk/; revision=27404
This commit is contained in:
parent
e2651a0dbc
commit
28e26ae6bc
1 changed files with 2 additions and 2 deletions
|
@ -1417,7 +1417,7 @@ RtlUnicodeStringToCountedOemString(
|
||||||
|
|
||||||
if (!Length)
|
if (!Length)
|
||||||
{
|
{
|
||||||
RtlZeroMemory(OemDest, sizeof(UNICODE_STRING));
|
RtlZeroMemory(OemDest, sizeof(OEM_STRING));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;
|
if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;
|
||||||
|
@ -1619,7 +1619,7 @@ RtlUpcaseUnicodeStringToCountedOemString(
|
||||||
|
|
||||||
if (!Length)
|
if (!Length)
|
||||||
{
|
{
|
||||||
RtlZeroMemory(OemDest, sizeof(UNICODE_STRING));
|
RtlZeroMemory(OemDest, sizeof(OEM_STRING));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;
|
if (Length > MAXUSHORT) return STATUS_INVALID_PARAMETER_2;
|
||||||
|
|
Loading…
Reference in a new issue