Small fix.

This commit is contained in:
Juergen Schmied 2000-01-27 05:39:44 +00:00 committed by Alexandre Julliard
parent 788d8d554c
commit 6a9f1906a5
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{