gdi: Fix test for GetGlyphIndicesW on non Unicode systems.

This commit is contained in:
Jeff Latimer 2006-09-01 22:55:50 +10:00 committed by Alexandre Julliard
parent 70cb31e4e6
commit aed4f47890
1 changed files with 8 additions and 0 deletions

View File

@ -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;