Skip to content
Snippets Groups Projects
Commit a3395045 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard
Browse files

Convert lpnFit back to multibyte in GetTextExtentExPointA.

parent 83e9fd85
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment