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
fe802040
Commit
fe802040
authored
Sep 17, 2014
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Allow NetFwOpenPort to be created.
parent
613d1715
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
hnetcfg.c
dlls/hnetcfg/hnetcfg.c
+5
-0
hnetcfg_private.h
dlls/hnetcfg/hnetcfg_private.h
+1
-0
port.c
dlls/hnetcfg/port.c
+1
-1
No files found.
dlls/hnetcfg/hnetcfg.c
View file @
fe802040
...
@@ -112,6 +112,7 @@ static const struct IClassFactoryVtbl hnetcfg_cf_vtbl =
...
@@ -112,6 +112,7 @@ static const struct IClassFactoryVtbl hnetcfg_cf_vtbl =
static
hnetcfg_cf
fw_manager_cf
=
{
{
&
hnetcfg_cf_vtbl
},
NetFwMgr_create
};
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_app_cf
=
{
{
&
hnetcfg_cf_vtbl
},
NetFwAuthorizedApplication_create
};
static
hnetcfg_cf
fw_openport_cf
=
{
{
&
hnetcfg_cf_vtbl
},
NetFwOpenPort_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
{
...
@@ -142,6 +143,10 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
...
@@ -142,6 +143,10 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
{
{
cf
=
&
fw_app_cf
.
IClassFactory_iface
;
cf
=
&
fw_app_cf
.
IClassFactory_iface
;
}
}
else
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_NetFwOpenPort
))
{
cf
=
&
fw_openport_cf
.
IClassFactory_iface
;
}
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
...
...
dlls/hnetcfg/hnetcfg_private.h
View file @
fe802040
...
@@ -34,4 +34,5 @@ HRESULT NetFwProfile_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
...
@@ -34,4 +34,5 @@ HRESULT NetFwProfile_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT
NetFwAuthorizedApplication_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwAuthorizedApplication_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwAuthorizedApplications_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwAuthorizedApplications_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwOpenPorts_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwOpenPorts_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwOpenPort_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwServices_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwServices_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
dlls/hnetcfg/port.c
View file @
fe802040
...
@@ -321,7 +321,7 @@ static const struct INetFwOpenPortVtbl fw_port_vtbl =
...
@@ -321,7 +321,7 @@ static const struct INetFwOpenPortVtbl fw_port_vtbl =
fw_port_get_BuiltIn
fw_port_get_BuiltIn
};
};
static
HRESULT
NetFwOpenPort_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
HRESULT
NetFwOpenPort_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
{
{
fw_port
*
fp
;
fw_port
*
fp
;
...
...
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