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
19a0350b
Commit
19a0350b
authored
Sep 17, 2010
by
Alexandre Goujon
Committed by
Alexandre Julliard
Sep 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: avisplitter Fix query interface test.
parent
dfd3e2dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
32 deletions
+21
-32
parser.c
dlls/quartz/parser.c
+4
-9
avisplitter.c
dlls/quartz/tests/avisplitter.c
+17
-23
No files found.
dlls/quartz/parser.c
View file @
19a0350b
...
...
@@ -114,16 +114,11 @@ HRESULT WINAPI Parser_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID *
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersist
))
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaFilter
))
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IPersist
)
||
IsEqualIID
(
riid
,
&
IID_IMediaFilter
)
||
IsEqualIID
(
riid
,
&
IID_IBaseFilter
)
)
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IBaseFilter
))
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
*
ppv
=
&
This
->
mediaSeeking
;
if
(
*
ppv
)
{
...
...
dlls/quartz/tests/avisplitter.c
View file @
19a0350b
...
...
@@ -89,29 +89,23 @@ static void test_query_interface(void)
ULONG
ref
;
IUnknown
*
iface
=
NULL
;
hr
=
IUnknown_QueryInterface
(
pAviSplitter
,
&
IID_IBaseFilter
,
(
void
**
)
&
iface
);
ok
(
hr
==
S_OK
,
"IID_IBaseFilter should exist, got %08x!
\n
"
,
GetLastError
());
if
(
hr
==
S_OK
)
{
ref
=
IUnknown_Release
(
iface
);
iface
=
NULL
;
ok
(
ref
==
1
,
"Reference is %u, expected 1
\n
"
,
ref
);
}
hr
=
IUnknown_QueryInterface
(
pAviSplitter
,
&
IID_IMediaSeeking
,
(
void
**
)
&
iface
);
if
(
hr
==
S_OK
)
ref
=
IUnknown_Release
(
iface
);
iface
=
NULL
;
todo_wine
ok
(
hr
==
E_NOINTERFACE
,
"Query for IMediaSeeking returned: %08x
\n
"
,
hr
);
/* These interfaces should not be present:
IID_IKsPropertySet, IID_IMediaPosition, IID_IQualityControl, IID_IQualProp
*/
#define TEST_INTERFACE(riid,expected) do { \
hr = IUnknown_QueryInterface(pAviSplitter, &riid, (void**)&iface); \
ok( hr == expected, #riid" should %s got %08X\n", expected==S_OK ? "exist" : "not be present", GetLastError() ); \
if (hr == S_OK) { \
ref = IUnknown_Release(iface); \
ok(ref == 1, "Reference is %u, expected 1\n", ref); \
} \
iface = NULL; \
} while(0)
TEST_INTERFACE
(
IID_IBaseFilter
,
S_OK
);
TEST_INTERFACE
(
IID_IMediaSeeking
,
E_NOINTERFACE
);
TEST_INTERFACE
(
IID_IKsPropertySet
,
E_NOINTERFACE
);
TEST_INTERFACE
(
IID_IMediaPosition
,
E_NOINTERFACE
);
TEST_INTERFACE
(
IID_IQualityControl
,
E_NOINTERFACE
);
TEST_INTERFACE
(
IID_IQualProp
,
E_NOINTERFACE
);
#undef TEST_INTERFACE
}
static
void
test_pin
(
IPin
*
pin
)
...
...
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