gdiplus: Allow null-terminated strings in GdipDrawString.
This commit is contained in:
parent
b56689d22c
commit
d0cead32a6
|
@ -1296,6 +1296,8 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
|
||||||
return NotImplemented;
|
return NotImplemented;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(length == -1) length = lstrlenW(string);
|
||||||
|
|
||||||
stringdup = GdipAlloc(length * sizeof(WCHAR));
|
stringdup = GdipAlloc(length * sizeof(WCHAR));
|
||||||
if(!stringdup) return OutOfMemory;
|
if(!stringdup) return OutOfMemory;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue