Commit 6725dc61 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed DrawTextW length handling.

parent 25b05b1a
......@@ -327,6 +327,7 @@ INT WINAPI DrawTextW( HDC hdc, LPCWSTR str, INT count,
acount = WideCharToMultiByte(codepage,0,str,count,NULL,0,NULL,NULL);
p = HeapAlloc( GetProcessHeap(), 0, acount );
acount = WideCharToMultiByte(codepage,0,str,count,p,acount,NULL,NULL);
if (count == -1) acount = -1;
ret = DrawTextA( hdc, p, acount, rect, flags );
HeapFree( GetProcessHeap(), 0, p );
......
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