Evan Stade : gdiplus: Allow null-terminated strings in GdipDrawString.
Module: wine Branch: master Commit: d0cead32a64455ec1efd3d37914d948d0b7cbf7a URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0cead32a64455ec1efd3d3791... Author: Evan Stade <estade(a)gmail.com> Date: Tue Aug 14 19:01:07 2007 -0700 gdiplus: Allow null-terminated strings in GdipDrawString. --- dlls/gdiplus/graphics.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 968c89f..f63e073 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -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;
participants (1)
-
Alexandre Julliard