Jeff Latimer : gdi: Fix test for GetGlyphIndicesW on non Unicode systems.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 11 06:05:07 CDT 2006


Module: wine
Branch: master
Commit: aed4f478900f8bf454f40d81e01eeb697f1a20a7
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=aed4f478900f8bf454f40d81e01eeb697f1a20a7

Author: Jeff Latimer <lats at yless4u.com.au>
Date:   Fri Sep  1 22:55:50 2006 +1000

gdi: Fix test for GetGlyphIndicesW on non Unicode systems.

---

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

diff --git a/dlls/gdi/tests/font.c b/dlls/gdi/tests/font.c
index 4ed5bbc..699d9b2 100644
--- a/dlls/gdi/tests/font.c
+++ b/dlls/gdi/tests/font.c
@@ -402,6 +402,14 @@ static void test_GetGlyphIndices()
     WORD     glyphs[(sizeof(testtext)/2)-1];
     TEXTMETRIC textm;
 
+    typedef BOOL (WINAPI *fnGetGlyphIndicesW)(HDC hdc, LPCWSTR lpstr, INT count, LPWORD pgi, DWORD flags);
+    fnGetGlyphIndicesW GetGlyphIndicesW = (fnGetGlyphIndicesW)GetProcAddress(LoadLibrary("gdi32"), 
+                                           "GetGlyphIndicesW");
+    if (!GetGlyphIndicesW) {
+        trace("GetGlyphIndices not available on platform\n");
+        return;
+    }
+
     memset(&lf, 0, sizeof(lf));
     strcpy(lf.lfFaceName, "Symbol");
     lf.lfHeight = 20;




More information about the wine-cvs mailing list