Skip to content
Snippets Groups Projects
Commit 6a9f1906 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard
Browse files

Small fix.

parent 788d8d55
Branches
Tags
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment