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
329b3116
Commit
329b3116
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: Standardize the COM usage in service.c.
parent
a38022ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
service.c
dlls/hnetcfg/service.c
+8
-8
No files found.
dlls/hnetcfg/service.c
View file @
329b3116
...
...
@@ -36,13 +36,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(hnetcfg);
typedef
struct
fw_service
{
const
INetFwServiceVtbl
*
vtbl
;
INetFwService
INetFwService_iface
;
LONG
refs
;
}
fw_service
;
static
inline
fw_service
*
impl_from_INetFwService
(
INetFwService
*
iface
)
{
return
(
fw_service
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
fw_service
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
fw_service
,
INetFwService_iface
);
}
static
ULONG
WINAPI
fw_service_AddRef
(
...
...
@@ -295,10 +295,10 @@ static HRESULT NetFwService_create( IUnknown *pUnkOuter, LPVOID *ppObj )
fp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
fp
)
);
if
(
!
fp
)
return
E_OUTOFMEMORY
;
fp
->
v
tbl
=
&
fw_service_vtbl
;
fp
->
INetFwService_iface
.
lpV
tbl
=
&
fw_service_vtbl
;
fp
->
refs
=
1
;
*
ppObj
=
&
fp
->
vtbl
;
*
ppObj
=
&
fp
->
INetFwService_iface
;
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
return
S_OK
;
...
...
@@ -306,13 +306,13 @@ static HRESULT NetFwService_create( IUnknown *pUnkOuter, LPVOID *ppObj )
typedef
struct
fw_services
{
const
INetFwServicesVtbl
*
vtbl
;
INetFwServices
INetFwServices_iface
;
LONG
refs
;
}
fw_services
;
static
inline
fw_services
*
impl_from_INetFwServices
(
INetFwServices
*
iface
)
{
return
(
fw_services
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
fw_services
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
fw_services
,
INetFwServices_iface
);
}
static
ULONG
WINAPI
fw_services_AddRef
(
...
...
@@ -469,10 +469,10 @@ HRESULT NetFwServices_create( IUnknown *pUnkOuter, LPVOID *ppObj )
fp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
fp
)
);
if
(
!
fp
)
return
E_OUTOFMEMORY
;
fp
->
v
tbl
=
&
fw_services_vtbl
;
fp
->
INetFwServices_iface
.
lpV
tbl
=
&
fw_services_vtbl
;
fp
->
refs
=
1
;
*
ppObj
=
&
fp
->
vtbl
;
*
ppObj
=
&
fp
->
INetFwServices_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