commit | d0cead32a64455ec1efd3d37914d948d0b7cbf7a | [log] [tgz] |
---|---|---|
author | Evan Stade <estade@gmail.com> | Tue Aug 14 19:01:07 2007 -0700 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Aug 15 10:56:25 2007 +0200 |
tree | 8e4cfc9b637bf4e6a5df28af05909708f55776b3 | |
parent | b56689d22c41a64eb611a5488068e9b89601382a [diff] [blame] |
gdiplus: Allow null-terminated strings in GdipDrawString.
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 @@ return NotImplemented; } + if(length == -1) length = lstrlenW(string); + stringdup = GdipAlloc(length * sizeof(WCHAR)); if(!stringdup) return OutOfMemory;