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
328ca0e0
Commit
328ca0e0
authored
Jan 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix an uninitialized pointer check for Win64.
parent
ec1b28ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
font.c
dlls/gdi32/tests/font.c
+3
-1
No files found.
dlls/gdi32/tests/font.c
View file @
328ca0e0
...
...
@@ -1185,6 +1185,7 @@ static void test_GetOutlineTextMetrics(void)
HFONT
hfont
,
hfont_old
;
HDC
hdc
;
DWORD
ret
,
otm_size
;
LPSTR
unset_ptr
;
if
(
!
is_font_installed
(
"Arial"
))
{
...
...
@@ -1241,6 +1242,7 @@ static void test_GetOutlineTextMetrics(void)
/* ask about truncated data */
memset
(
otm
,
0xAA
,
otm_size
);
memset
(
&
unset_ptr
,
0xAA
,
sizeof
(
unset_ptr
));
SetLastError
(
0xdeadbeef
);
otm
->
otmSize
=
sizeof
(
*
otm
)
-
sizeof
(
LPSTR
);
/* just in case for Win9x compatibility */
ret
=
GetOutlineTextMetrics
(
hdc
,
otm
->
otmSize
,
otm
);
...
...
@@ -1253,7 +1255,7 @@ static void test_GetOutlineTextMetrics(void)
ok
(
otm
->
otmpFaceName
==
NULL
,
"expected NULL got %p
\n
"
,
otm
->
otmpFaceName
);
ok
(
otm
->
otmpStyleName
==
NULL
,
"expected NULL got %p
\n
"
,
otm
->
otmpStyleName
);
}
ok
(
otm
->
otmpFullName
==
(
LPSTR
)
0xAAAAAAAA
,
"expected 0xAAAAAAAA got %p
\n
"
,
otm
->
otmpFullName
);
ok
(
otm
->
otmpFullName
==
unset_ptr
,
"expected %p got %p
\n
"
,
unset_ptr
,
otm
->
otmpFullName
);
HeapFree
(
GetProcessHeap
(),
0
,
otm
);
...
...
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