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
ef6cc1a2
Commit
ef6cc1a2
authored
Nov 26, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Nov 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddrawex/tests: Don't crash when IDirectDraw4 query fails.
parent
04f5160c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ddrawex.c
dlls/ddrawex/tests/ddrawex.c
+10
-1
No files found.
dlls/ddrawex/tests/ddrawex.c
View file @
ef6cc1a2
...
...
@@ -50,6 +50,7 @@ static void RefCountTest(void)
IDirectDraw2
*
dd2
;
IDirectDraw3
*
dd3
;
IDirectDraw4
*
dd4
;
HRESULT
hr
;
ULONG
ref
;
ref
=
get_ref
((
IUnknown
*
)
dd1
);
...
...
@@ -76,7 +77,15 @@ static void RefCountTest(void)
ref
=
get_ref
((
IUnknown
*
)
dd3
);
ok
(
ref
==
3
,
"IDirectDraw3 refcount is %u, expected 3
\n
"
,
ref
);
IDirectDraw_QueryInterface
(
dd1
,
&
IID_IDirectDraw4
,
(
void
**
)
&
dd4
);
hr
=
IDirectDraw_QueryInterface
(
dd1
,
&
IID_IDirectDraw4
,
(
void
**
)
&
dd4
);
if
(
FAILED
(
hr
))
{
win_skip
(
"Failed to query IDirectDraw4
\n
"
);
IDirectDraw_Release
(
dd1
);
IDirectDraw2_Release
(
dd2
);
IDirectDraw3_Release
(
dd3
);
return
;
}
ref
=
get_ref
((
IUnknown
*
)
dd4
);
ok
(
ref
==
4
,
"IDirectDraw4 refcount is %u, expected 4
\n
"
,
ref
);
...
...
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