Small fix.
This commit is contained in:
parent
788d8d554c
commit
6a9f1906a5
|
@ -198,9 +198,9 @@ WINAPI RtlAnsiStringToUnicodeString(
|
|||
uni->Length = len;
|
||||
if (doalloc)
|
||||
{
|
||||
uni->MaximumLength = len + sizeof(WCHAR);
|
||||
uni->Buffer = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,uni->MaximumLength);
|
||||
if (!uni->Buffer) return STATUS_NO_MEMORY;
|
||||
uni->MaximumLength = len + sizeof(WCHAR);
|
||||
}
|
||||
else if (len+sizeof(WCHAR) > uni->MaximumLength)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue