Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
76319e3a
Commit
76319e3a
authored
May 27, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10/tests: Load GetGlyphIndicesW dynamically.
parent
93dd2521
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
usp10.c
dlls/usp10/tests/usp10.c
+4
-1
No files found.
dlls/usp10/tests/usp10.c
View file @
76319e3a
...
...
@@ -55,6 +55,8 @@ static HRESULT (WINAPI *pScriptItemizeOpenType)( const WCHAR *pwcInChars, int cI
static
HRESULT
(
WINAPI
*
pScriptShapeOpenType
)(
HDC
hdc
,
SCRIPT_CACHE
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
OPENTYPE_TAG
tagScript
,
OPENTYPE_TAG
tagLangSys
,
int
*
rcRangeChars
,
TEXTRANGE_PROPERTIES
**
rpRangeProperties
,
int
cRanges
,
const
WCHAR
*
pwcChars
,
int
cChars
,
int
cMaxGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProps
,
WORD
*
pwOutGlyphs
,
SCRIPT_GLYPHPROP
*
pOutGlyphProps
,
int
*
pcGlyphs
);
static
DWORD
(
WINAPI
*
pGetGlyphIndicesW
)(
HDC
hdc
,
LPCWSTR
lpstr
,
INT
count
,
LPWORD
pgi
,
DWORD
flags
);
static
inline
void
_test_items_ok
(
LPCWSTR
string
,
DWORD
cchString
,
SCRIPT_CONTROL
*
Control
,
SCRIPT_STATE
*
State
,
DWORD
nItems
,
const
itemTest
*
items
,
BOOL
nItemsToDo
,
...
...
@@ -216,6 +218,7 @@ static void test_ScriptItemize( void )
ok
(
usp10
!=
0
,
"Unable to LoadLibrary on usp10.dll
\n
"
);
pScriptItemizeOpenType
=
(
void
*
)
GetProcAddress
(
usp10
,
"ScriptItemizeOpenType"
);
pScriptShapeOpenType
=
(
void
*
)
GetProcAddress
(
usp10
,
"ScriptShapeOpenType"
);
pGetGlyphIndicesW
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"gdi32.dll"
),
"GetGlyphIndicesW"
);
memset
(
&
Control
,
0
,
sizeof
(
Control
));
memset
(
&
State
,
0
,
sizeof
(
State
));
...
...
@@ -493,7 +496,7 @@ static int _find_font_for_range(HDC hdc, const CHAR *recommended, BYTE range, co
WORD
glyph
=
0
;
*
origFont
=
SelectObject
(
hdc
,
*
hfont
);
if
(
GetGlyphIndicesW
(
hdc
,
&
check
,
1
,
&
glyph
,
0
)
==
GDI_ERROR
||
glyph
==
0
)
if
(
pGetGlyphIndicesW
&&
(
pGetGlyphIndicesW
(
hdc
,
&
check
,
1
,
&
glyph
,
0
)
==
GDI_ERROR
||
glyph
==
0
)
)
{
winetest_trace
(
" Font fails to contain required glyphs
\n
"
);
SelectObject
(
hdc
,
*
origFont
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment