gdiplus: Allow null-terminated strings in GdipDrawString.

This commit is contained in:
Evan Stade 2007-08-14 19:01:07 -07:00 committed by Alexandre Julliard
parent b56689d22c
commit d0cead32a6
1 changed files with 2 additions and 0 deletions

View File

@ -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;