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
5c40a8a9
Commit
5c40a8a9
authored
Jan 06, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdaps: COM cleanup for the IClassFactory iface.
parent
a9ae183d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
main.c
dlls/msdaps/main.c
+12
-7
No files found.
dlls/msdaps/main.c
View file @
5c40a8a9
...
...
@@ -60,13 +60,18 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
*/
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
create_object
)(
IUnknown
*
,
LPVOID
*
);
}
cf
;
static
inline
cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
cf
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
CF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
obj
)
{
cf
*
This
=
(
cf
*
)
iface
;
cf
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
obj
);
...
...
@@ -92,7 +97,7 @@ static ULONG WINAPI CF_Release(IClassFactory *iface)
static
HRESULT
WINAPI
CF_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pOuter
,
REFIID
riid
,
void
**
obj
)
{
cf
*
This
=
(
cf
*
)
iface
;
cf
*
This
=
impl_from_IClassFactory
(
iface
)
;
IUnknown
*
unk
=
NULL
;
HRESULT
r
;
...
...
@@ -122,10 +127,10 @@ static const IClassFactoryVtbl CF_Vtbl =
CF_LockServer
};
static
cf
row_server_cf
=
{
&
CF_Vtbl
,
create_row_server
};
static
cf
row_proxy_cf
=
{
&
CF_Vtbl
,
create_row_marshal
};
static
cf
rowset_server_cf
=
{
&
CF_Vtbl
,
create_rowset_server
};
static
cf
rowset_proxy_cf
=
{
&
CF_Vtbl
,
create_rowset_marshal
};
static
cf
row_server_cf
=
{
{
&
CF_Vtbl
}
,
create_row_server
};
static
cf
row_proxy_cf
=
{
{
&
CF_Vtbl
}
,
create_row_marshal
};
static
cf
rowset_server_cf
=
{
{
&
CF_Vtbl
}
,
create_rowset_server
};
static
cf
rowset_proxy_cf
=
{
{
&
CF_Vtbl
}
,
create_rowset_marshal
};
/***********************************************************************
* DllGetClassObject
...
...
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