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
30e90c9a
Commit
30e90c9a
authored
Jan 24, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: COM cleanup for the IClassFactory iface.
parent
5fd62154
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
factory.c
dlls/mstask/factory.c
+14
-3
mstask_private.h
dlls/mstask/mstask_private.h
+1
-5
No files found.
dlls/mstask/factory.c
View file @
30e90c9a
...
...
@@ -21,12 +21,23 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mstask
);
struct
ClassFactoryImpl
{
IClassFactory
IClassFactory_iface
;
LONG
ref
;
};
static
inline
ClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ClassFactoryImpl
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
MSTASK_IClassFactory_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
ClassFactoryImpl
*
This
=
(
ClassFactoryImpl
*
)
iface
;
ClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"IID: %s
\n
"
,
debugstr_guid
(
riid
));
if
(
ppvObj
==
NULL
)
...
...
@@ -35,7 +46,7 @@ static HRESULT WINAPI MSTASK_IClassFactory_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IClassFactory
))
{
*
ppvObj
=
&
This
->
lpVtbl
;
*
ppvObj
=
&
This
->
IClassFactory_iface
;
IClassFactory_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -105,4 +116,4 @@ static const IClassFactoryVtbl IClassFactory_Vtbl =
MSTASK_IClassFactory_LockServer
};
ClassFactoryImpl
MSTASK_ClassFactory
=
{
&
IClassFactory_Vtbl
};
ClassFactoryImpl
MSTASK_ClassFactory
=
{
{
&
IClassFactory_Vtbl
}
};
dlls/mstask/mstask_private.h
View file @
30e90c9a
...
...
@@ -31,11 +31,7 @@
extern
LONG
dll_ref
;
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
LONG
ref
;
}
ClassFactoryImpl
;
typedef
struct
ClassFactoryImpl
ClassFactoryImpl
;
extern
ClassFactoryImpl
MSTASK_ClassFactory
;
typedef
struct
...
...
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