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
b21c2d65
Commit
b21c2d65
authored
Jun 19, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: COM cleanup for the IClassFactory iface.
parent
6009ed4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
11 deletions
+28
-11
filtergraph.c
dlls/quartz/tests/filtergraph.c
+28
-11
No files found.
dlls/quartz/tests/filtergraph.c
View file @
b21c2d65
...
...
@@ -1354,11 +1354,16 @@ static const IBaseFilterVtbl TestFilter_Vtbl =
typedef
struct
TestClassFactoryImpl
{
IClassFactory
Vtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
const
TestFilterPinData
*
filterPinData
;
const
CLSID
*
clsid
;
}
TestClassFactoryImpl
;
static
inline
TestClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
TestClassFactoryImpl
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
Test_IClassFactory_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
...
...
@@ -1394,7 +1399,7 @@ static HRESULT WINAPI Test_IClassFactory_CreateInstance(
REFIID
riid
,
LPVOID
*
ppvObj
)
{
TestClassFactoryImpl
*
This
=
(
TestClassFactoryImpl
*
)
iface
;
TestClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
HRESULT
hr
;
IUnknown
*
punk
=
NULL
;
...
...
@@ -1522,9 +1527,18 @@ static void test_render_filter_priority(void)
{
PINDIR_INPUT
,
&
mediasubtype2
},
{
0
,
0
}
};
TestClassFactoryImpl
Filter1ClassFactory
=
{
&
TestClassFactory_Vtbl
,
PinData2
,
&
CLSID_TestFilter2
};
TestClassFactoryImpl
Filter2ClassFactory
=
{
&
TestClassFactory_Vtbl
,
PinData4
,
&
CLSID_TestFilter3
};
TestClassFactoryImpl
Filter3ClassFactory
=
{
&
TestClassFactory_Vtbl
,
PinData5
,
&
CLSID_TestFilter4
};
TestClassFactoryImpl
Filter1ClassFactory
=
{
{
&
TestClassFactory_Vtbl
},
PinData2
,
&
CLSID_TestFilter2
};
TestClassFactoryImpl
Filter2ClassFactory
=
{
{
&
TestClassFactory_Vtbl
},
PinData4
,
&
CLSID_TestFilter3
};
TestClassFactoryImpl
Filter3ClassFactory
=
{
{
&
TestClassFactory_Vtbl
},
PinData5
,
&
CLSID_TestFilter4
};
char
ConnectedFilterName1
[
MAX_FILTER_NAME
];
char
ConnectedFilterName2
[
MAX_FILTER_NAME
];
REGFILTER2
rgf2
;
...
...
@@ -1760,16 +1774,19 @@ static void test_render_filter_priority(void)
ok
(
hr
==
S_OK
,
"IFilterGraph2_AddFilter failed with %08x
\n
"
,
hr
);
/* Register our filters with COM and with Filtermapper. */
hr
=
CoRegisterClassObject
(
Filter1ClassFactory
.
clsid
,
(
IUnknown
*
)
&
Filter1ClassFactory
,
CLSCTX_INPROC_SERVER
,
REGCLS_MULTIPLEUSE
,
&
cookie1
);
hr
=
CoRegisterClassObject
(
Filter1ClassFactory
.
clsid
,
(
IUnknown
*
)
&
Filter1ClassFactory
.
IClassFactory_iface
,
CLSCTX_INPROC_SERVER
,
REGCLS_MULTIPLEUSE
,
&
cookie1
);
ok
(
hr
==
S_OK
,
"CoRegisterClassObject failed with %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
out
;
hr
=
CoRegisterClassObject
(
Filter2ClassFactory
.
clsid
,
(
IUnknown
*
)
&
Filter2ClassFactory
,
CLSCTX_INPROC_SERVER
,
REGCLS_MULTIPLEUSE
,
&
cookie2
);
hr
=
CoRegisterClassObject
(
Filter2ClassFactory
.
clsid
,
(
IUnknown
*
)
&
Filter2ClassFactory
.
IClassFactory_iface
,
CLSCTX_INPROC_SERVER
,
REGCLS_MULTIPLEUSE
,
&
cookie2
);
ok
(
hr
==
S_OK
,
"CoRegisterClassObject failed with %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
out
;
hr
=
CoRegisterClassObject
(
Filter3ClassFactory
.
clsid
,
(
IUnknown
*
)
&
Filter3ClassFactory
,
CLSCTX_INPROC_SERVER
,
REGCLS_MULTIPLEUSE
,
&
cookie3
);
hr
=
CoRegisterClassObject
(
Filter3ClassFactory
.
clsid
,
(
IUnknown
*
)
&
Filter3ClassFactory
.
IClassFactory_iface
,
CLSCTX_INPROC_SERVER
,
REGCLS_MULTIPLEUSE
,
&
cookie3
);
ok
(
hr
==
S_OK
,
"CoRegisterClassObject failed with %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
out
;
...
...
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