mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Convert lpnFit back to multibyte in GetTextExtentExPointA.
This commit is contained in:
parent
83e9fd8513
commit
a33950456d
@ -1057,6 +1057,7 @@ BOOL WINAPI GetTextExtentExPointA( HDC hdc, LPCSTR str, INT count,
|
|||||||
INT wlen;
|
INT wlen;
|
||||||
LPWSTR p = FONT_mbtowc( hdc, str, count, &wlen, NULL);
|
LPWSTR p = FONT_mbtowc( hdc, str, count, &wlen, NULL);
|
||||||
ret = GetTextExtentExPointW( hdc, p, wlen, maxExt, lpnFit, alpDx, size);
|
ret = GetTextExtentExPointW( hdc, p, wlen, maxExt, lpnFit, alpDx, size);
|
||||||
|
if (lpnFit) *lpnFit = WideCharToMultiByte(CP_ACP,0,p,*lpnFit,NULL,0,NULL,NULL);
|
||||||
HeapFree( GetProcessHeap(), 0, p );
|
HeapFree( GetProcessHeap(), 0, p );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user