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
3dd2c0d8
Commit
3dd2c0d8
authored
Dec 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Use an iface instead of a vtbl pointer in hnetcfg_cf.
parent
957cfa68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
hnetcfg.c
dlls/hnetcfg/hnetcfg.c
+6
-6
No files found.
dlls/hnetcfg/hnetcfg.c
View file @
3dd2c0d8
...
...
@@ -37,13 +37,13 @@ typedef HRESULT (*fnCreateInstance)( IUnknown *pUnkOuter, LPVOID *ppObj );
typedef
struct
{
const
struct
IClassFactoryVtbl
*
vtbl
;
IClassFactory
IClassFactory_iface
;
fnCreateInstance
pfnCreateInstance
;
}
hnetcfg_cf
;
static
inline
hnetcfg_cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
(
hnetcfg_cf
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
hnetcfg_cf
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
hnetcfg_cf
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
hnetcfg_cf_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
...
...
@@ -110,8 +110,8 @@ static const struct IClassFactoryVtbl hnetcfg_cf_vtbl =
hnetcfg_cf_LockServer
};
static
hnetcfg_cf
fw_manager_cf
=
{
&
hnetcfg_cf_vtbl
,
NetFwMgr_create
};
static
hnetcfg_cf
fw_app_cf
=
{
&
hnetcfg_cf_vtbl
,
NetFwAuthorizedApplication_create
};
static
hnetcfg_cf
fw_manager_cf
=
{
{
&
hnetcfg_cf_vtbl
}
,
NetFwMgr_create
};
static
hnetcfg_cf
fw_app_cf
=
{
{
&
hnetcfg_cf_vtbl
}
,
NetFwAuthorizedApplication_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
...
...
@@ -138,11 +138,11 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_NetFwMgr
))
{
cf
=
(
IClassFactory
*
)
&
fw_manager_cf
.
vtbl
;
cf
=
&
fw_manager_cf
.
IClassFactory_iface
;
}
else
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_NetFwAuthorizedApplication
))
{
cf
=
(
IClassFactory
*
)
&
fw_app_cf
.
vtbl
;
cf
=
&
fw_app_cf
.
IClassFactory_iface
;
}
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
...
...
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