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
bd607b64
Commit
bd607b64
authored
Jan 19, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Fix a test failure on Win9x.
parent
e60ec41e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
txtsrv.c
dlls/riched20/tests/txtsrv.c
+9
-1
No files found.
dlls/riched20/tests/txtsrv.c
View file @
bd607b64
...
...
@@ -673,6 +673,7 @@ static void test_TxSetText(void)
void
test_TxGetNaturalSize
()
{
HRESULT
result
;
BOOL
ret
;
/* This value is used when calling TxGetNaturalSize. MSDN says
that this is not supported however a null pointer cannot be
...
...
@@ -702,7 +703,14 @@ void test_TxGetNaturalSize() {
/* Populate the metric strucs */
SetMapMode
(
hdcDraw
,
MM_TEXT
);
GetTextMetrics
(
hdcDraw
,
&
tmInfo_text
);
GetCharWidth32
(
hdcDraw
,
'A'
,
'Z'
,
charwidth_caps_text
);
SetLastError
(
0xdeadbeef
);
ret
=
GetCharWidth32
(
hdcDraw
,
'A'
,
'Z'
,
charwidth_caps_text
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetCharWidth32 is not available
\n
"
);
RestoreDC
(
hdcDraw
,
1
);
ReleaseDC
(
NULL
,
hdcDraw
);
return
;
}
/* Make measurements in MM_TEXT */
SetMapMode
(
hdcDraw
,
MM_TEXT
);
...
...
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