Fixed DrawTextW length handling.

oldstable
Alexandre Julliard 2000-05-03 17:43:42 +00:00
parent 25b05b1a2f
commit 6725dc61eb
1 changed files with 1 additions and 0 deletions

View File

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