Convert lpnFit back to multibyte in GetTextExtentExPointA.

This commit is contained in:
Aric Stewart 2003-11-13 20:51:30 +00:00 committed by Alexandre Julliard
parent 83e9fd8513
commit a33950456d
1 changed files with 1 additions and 0 deletions

View File

@ -1057,6 +1057,7 @@ BOOL WINAPI GetTextExtentExPointA( HDC hdc, LPCSTR str, INT count,
INT wlen;
LPWSTR p = FONT_mbtowc( hdc, str, count, &wlen, NULL);
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 );
return ret;
}