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
e7a01a0c
Commit
e7a01a0c
authored
Dec 20, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Use an iface instead of an vtbl pointer in fw_policy.
parent
1b7cc1f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
policy.c
dlls/hnetcfg/policy.c
+4
-4
No files found.
dlls/hnetcfg/policy.c
View file @
e7a01a0c
...
...
@@ -36,13 +36,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(hnetcfg);
typedef
struct
fw_policy
{
const
INetFwPolicyVtbl
*
vtbl
;
INetFwPolicy
INetFwPolicy_iface
;
LONG
refs
;
}
fw_policy
;
static
inline
fw_policy
*
impl_from_INetFwPolicy
(
INetFwPolicy
*
iface
)
{
return
(
fw_policy
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
fw_policy
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
fw_policy
,
INetFwPolicy_iface
);
}
static
ULONG
WINAPI
fw_policy_AddRef
(
...
...
@@ -186,10 +186,10 @@ HRESULT NetFwPolicy_create( IUnknown *pUnkOuter, LPVOID *ppObj )
fp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
fp
)
);
if
(
!
fp
)
return
E_OUTOFMEMORY
;
fp
->
v
tbl
=
&
fw_policy_vtbl
;
fp
->
INetFwPolicy_iface
.
lpV
tbl
=
&
fw_policy_vtbl
;
fp
->
refs
=
1
;
*
ppObj
=
&
fp
->
vtbl
;
*
ppObj
=
&
fp
->
INetFwPolicy_iface
;
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
return
S_OK
;
...
...
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