Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6da1e08d
Commit
6da1e08d
authored
Mar 07, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t2embed/tests: Fix the TTGetEmbeddingType() test in UTF-8 locales.
A screen-compatible memory DC uses a TrueType font by default in UTF-8 locales.
parent
bd7a1a4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
t2embed.c
dlls/t2embed/tests/t2embed.c
+7
-3
No files found.
dlls/t2embed/tests/t2embed.c
View file @
6da1e08d
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "winnls.h"
#include "wingdi.h"
#include "wingdi.h"
#include "winuser.h"
#include "winuser.h"
#include "t2embapi.h"
#include "t2embapi.h"
...
@@ -100,12 +101,15 @@ static void test_TTGetEmbeddingType(void)
...
@@ -100,12 +101,15 @@ static void test_TTGetEmbeddingType(void)
hdc
=
CreateCompatibleDC
(
0
);
hdc
=
CreateCompatibleDC
(
0
);
ret
=
TTGetEmbeddingType
(
hdc
,
NULL
);
ret
=
TTGetEmbeddingType
(
hdc
,
NULL
);
ok
(
ret
==
E_NOTATRUETYPEFONT
,
"Unexpected retval %#lx.
\n
"
,
ret
);
ok
(
ret
==
E_NOTATRUETYPEFONT
||
(
ret
==
E_PERMISSIONSINVALID
&&
GetACP
()
==
CP_UTF8
),
"Unexpected retval %#lx.
\n
"
,
ret
);
status
=
0xdeadbeef
;
status
=
0xdeadbeef
;
ret
=
TTGetEmbeddingType
(
hdc
,
&
status
);
ret
=
TTGetEmbeddingType
(
hdc
,
&
status
);
ok
(
ret
==
E_NOTATRUETYPEFONT
,
"Unexpected retval %#lx.
\n
"
,
ret
);
ok
(
ret
==
E_NOTATRUETYPEFONT
||
(
ret
==
E_NONE
&&
GetACP
()
==
CP_UTF8
),
ok
(
status
==
0xdeadbeef
,
"Unexpected status %#lx.
\n
"
,
status
);
"Unexpected retval %#lx.
\n
"
,
ret
);
ok
(
status
==
0xdeadbeef
||
(
status
==
EMBED_EDITABLE
&&
GetACP
()
==
CP_UTF8
),
"Unexpected status %#lx.
\n
"
,
status
);
memset
(
&
logfont
,
0
,
sizeof
(
logfont
));
memset
(
&
logfont
,
0
,
sizeof
(
logfont
));
logfont
.
lfHeight
=
12
;
logfont
.
lfHeight
=
12
;
...
...
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