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
0c97026a
Commit
0c97026a
authored
Apr 07, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: COM cleanup for IClassFactory.
parent
598f4738
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
dlls/netprofm/main.c
+4
-4
No files found.
dlls/netprofm/main.c
View file @
0c97026a
...
...
@@ -48,13 +48,13 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
struct
netprofm_cf
{
const
struct
IClassFactoryVtbl
*
vtbl
;
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
create_instance
)(
void
**
);
};
static
inline
struct
netprofm_cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
(
struct
netprofm_cf
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
struct
netprofm_cf
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
struct
netprofm_cf
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
netprofm_cf_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
...
...
@@ -118,7 +118,7 @@ static const struct IClassFactoryVtbl netprofm_cf_vtbl =
netprofm_cf_LockServer
};
static
struct
netprofm_cf
list_manager_cf
=
{
&
netprofm_cf_vtbl
,
list_manager_create
};
static
struct
netprofm_cf
list_manager_cf
=
{
{
&
netprofm_cf_vtbl
}
,
list_manager_create
};
/***********************************************************************
* DllGetClassObject (NETPROFM.@)
...
...
@@ -131,7 +131,7 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_NetworkListManager
))
{
cf
=
(
IClassFactory
*
)
&
list_manager_cf
.
vtbl
;
cf
=
&
list_manager_cf
.
IClassFactory_iface
;
}
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
...
...
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