mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
Fixed DrawTextW length handling.
This commit is contained in:
parent
25b05b1a2f
commit
6725dc61eb
1 changed files with 1 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue