gdi: Write out glyph count correctly in GetCharacterPlacementA.

This commit is contained in:
Peter Oberndorfer 2006-04-11 19:25:44 +00:00 committed by Alexandre Julliard
parent 15c52a751a
commit e1f74ad5c7
1 changed files with 3 additions and 0 deletions

View File

@ -2673,6 +2673,9 @@ GetCharacterPlacementA(HDC hdc, LPCSTR lpString, INT uCount,
ret = GetCharacterPlacementW(hdc, lpStringW, uCountW, nMaxExtent, &resultsW, dwFlags); ret = GetCharacterPlacementW(hdc, lpStringW, uCountW, nMaxExtent, &resultsW, dwFlags);
lpResults->nGlyphs = resultsW.nGlyphs;
lpResults->nMaxFit = resultsW.nMaxFit;
if(lpResults->lpOutString) { if(lpResults->lpOutString) {
WideCharToMultiByte(font_cp, 0, resultsW.lpOutString, uCountW, WideCharToMultiByte(font_cp, 0, resultsW.lpOutString, uCountW,
lpResults->lpOutString, uCount, NULL, NULL ); lpResults->lpOutString, uCount, NULL, NULL );