gdi: write out glyph count correctly in GetCharacterPlacementA

Peter Oberndorfer kumbayo84 at arcor.de
Tue Apr 11 14:25:44 CDT 2006


The entries in the result structure were not filled out after calling 
GetCharacterPlacementW

Changelog:
gdi: write out glyph count correctly in GetCharacterPlacementA
---

 dlls/gdi/font.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

54f6c948bd3c3bb066179d1bacb873fa9b6aa65f
diff --git a/dlls/gdi/font.c b/dlls/gdi/font.c
index ffebd7e..40f85cf 100644
--- a/dlls/gdi/font.c
+++ b/dlls/gdi/font.c
@@ -2671,6 +2671,9 @@ GetCharacterPlacementA(HDC hdc, LPCSTR l
 
     ret = GetCharacterPlacementW(hdc, lpStringW, uCountW, nMaxExtent, &resultsW, dwFlags);
 
+    lpResults->nGlyphs = resultsW.nGlyphs;
+    lpResults->nMaxFit = resultsW.nMaxFit;
+
     if(lpResults->lpOutString) {
         WideCharToMultiByte(font_cp, 0, resultsW.lpOutString, uCountW,
                             lpResults->lpOutString, uCount, NULL, NULL );
-- 
1.2.6




More information about the wine-patches mailing list