Commit d0cead32 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Allow null-terminated strings in GdipDrawString.

parent b56689d2
......@@ -1296,6 +1296,8 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
return NotImplemented;
}
if(length == -1) length = lstrlenW(string);
stringdup = GdipAlloc(length * sizeof(WCHAR));
if(!stringdup) return OutOfMemory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment