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
2ae2d2fd
Commit
2ae2d2fd
authored
Feb 08, 2023
by
Ivan Chikish
Committed by
Alexandre Julliard
Feb 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore/tests: Check out value for NULL in check_interface.
parent
d6ccab8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+3
-1
No files found.
dlls/wmvcore/tests/wmvcore.c
View file @
2ae2d2fd
...
...
@@ -134,7 +134,7 @@ static WCHAR *load_resource(const WCHAR *name)
static
HRESULT
check_interface_
(
unsigned
int
line
,
void
*
iface
,
REFIID
riid
,
BOOL
supported
)
{
HRESULT
hr
,
expected_hr
;
IUnknown
*
unknown
=
iface
,
*
out
;
IUnknown
*
unknown
=
iface
,
*
out
=
(
IUnknown
*
)
0xbeef
;
expected_hr
=
supported
?
S_OK
:
E_NOINTERFACE
;
...
...
@@ -142,6 +142,8 @@ static HRESULT check_interface_(unsigned int line, void *iface, REFIID riid, BOO
ok_
(
__FILE__
,
line
)(
hr
==
expected_hr
,
"Got hr %#lx, expected %#lx.
\n
"
,
hr
,
expected_hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
out
);
else
if
(
!
supported
)
ok_
(
__FILE__
,
line
)(
out
==
NULL
,
"Expected out == NULL
\n
"
);
return
hr
;
}
...
...
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