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
97e81bc3
Commit
97e81bc3
authored
Mar 30, 2009
by
Massimo Del Fedele
Committed by
Alexandre Julliard
Mar 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add test for GetGlyphOutlineW() requesting buffer size for space char.
parent
fc10ba8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
font.c
dlls/gdi32/tests/font.c
+17
-0
No files found.
dlls/gdi32/tests/font.c
View file @
97e81bc3
...
...
@@ -2887,6 +2887,23 @@ static void test_GetGlyphOutline(void)
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
}
/* test for needed buffer size request on space char */
memset
(
&
gm
,
0
,
sizeof
(
gm
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutlineW
(
hdc
,
' '
,
GGO_NATIVE
,
&
gm
,
0
,
NULL
,
&
mat
);
if
(
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
ok
(
ret
==
0
,
"GetGlyphOutlineW should return 0 buffer size for space char
\n
"
);
/* requesting buffer size for space char + error */
memset
(
&
gm
,
0
,
sizeof
(
gm
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutlineW
(
0
,
' '
,
GGO_NATIVE
,
&
gm
,
0
,
NULL
,
NULL
);
if
(
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
{
ok
(
ret
==
GDI_ERROR
,
"GetGlyphOutlineW should return GDI_ERROR
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
}
SelectObject
(
hdc
,
old_hfont
);
DeleteObject
(
hfont
);
DeleteDC
(
hdc
);
...
...
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