gdi: Fix test for GetGlyphIndicesW on non Unicode systems.
This commit is contained in:
parent
70cb31e4e6
commit
aed4f47890
|
@ -402,6 +402,14 @@ static void test_GetGlyphIndices()
|
||||||
WORD glyphs[(sizeof(testtext)/2)-1];
|
WORD glyphs[(sizeof(testtext)/2)-1];
|
||||||
TEXTMETRIC textm;
|
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));
|
memset(&lf, 0, sizeof(lf));
|
||||||
strcpy(lf.lfFaceName, "Symbol");
|
strcpy(lf.lfFaceName, "Symbol");
|
||||||
lf.lfHeight = 20;
|
lf.lfHeight = 20;
|
||||||
|
|
Loading…
Reference in New Issue