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
56dfb5bb
Commit
56dfb5bb
authored
Mar 28, 2024
by
Alfred Agrell
Committed by
Alexandre Julliard
Apr 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Test the new error codes.
parent
6a3bec8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+13
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
56dfb5bb
...
...
@@ -5367,6 +5367,19 @@ static void test_add_source_filter(void)
else
skip
(
"Not enough permission to register media types.
\n
"
);
/* Test some failure cases. */
filter
=
(
IBaseFilter
*
)
0xdeadbeef
;
hr
=
IFilterGraph2_AddSourceFilter
(
graph
,
L""
,
NULL
,
&
filter
);
/* the BURIKO visual novel engine requires this exact error code */
ok
(
hr
==
VFW_E_NOT_FOUND
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
filter
==
(
IBaseFilter
*
)
0xdeadbeef
,
"Got %p.
\n
"
,
filter
);
filter
=
(
IBaseFilter
*
)
0xdeadbeef
;
hr
=
IFilterGraph2_AddSourceFilter
(
graph
,
L"doesnt_exist.mp3"
,
NULL
,
&
filter
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"Got hr %#lx.
\n
"
,
hr
);
ok
(
filter
==
(
IBaseFilter
*
)
0xdeadbeef
,
"Got %p.
\n
"
,
filter
);
ref
=
IFilterGraph2_Release
(
graph
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\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