Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
97c5c332
Commit
97c5c332
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 apps.c.
parent
f2319fcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
apps.c
dlls/hnetcfg/apps.c
+8
-8
No files found.
dlls/hnetcfg/apps.c
View file @
97c5c332
...
...
@@ -36,13 +36,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(hnetcfg);
typedef
struct
fw_app
{
const
INetFwAuthorizedApplicationVtbl
*
vtbl
;
INetFwAuthorizedApplication
INetFwAuthorizedApplication_iface
;
LONG
refs
;
}
fw_app
;
static
inline
fw_app
*
impl_from_INetFwAuthorizedApplication
(
INetFwAuthorizedApplication
*
iface
)
{
return
(
fw_app
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
fw_app
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
fw_app
,
INetFwAuthorizedApplication_iface
);
}
static
ULONG
WINAPI
fw_app_AddRef
(
...
...
@@ -297,23 +297,23 @@ HRESULT NetFwAuthorizedApplication_create( IUnknown *pUnkOuter, LPVOID *ppObj )
fa
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
fa
)
);
if
(
!
fa
)
return
E_OUTOFMEMORY
;
fa
->
v
tbl
=
&
fw_app_vtbl
;
fa
->
INetFwAuthorizedApplication_iface
.
lpV
tbl
=
&
fw_app_vtbl
;
fa
->
refs
=
1
;
*
ppObj
=
&
fa
->
vtbl
;
*
ppObj
=
&
fa
->
INetFwAuthorizedApplication_iface
;
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
return
S_OK
;
}
typedef
struct
fw_apps
{
const
INetFwAuthorizedApplicationsVtbl
*
vtbl
;
INetFwAuthorizedApplications
INetFwAuthorizedApplications_iface
;
LONG
refs
;
}
fw_apps
;
static
inline
fw_apps
*
impl_from_INetFwAuthorizedApplications
(
INetFwAuthorizedApplications
*
iface
)
{
return
(
fw_apps
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
fw_apps
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
fw_apps
,
INetFwAuthorizedApplications_iface
);
}
static
ULONG
WINAPI
fw_apps_AddRef
(
...
...
@@ -490,10 +490,10 @@ HRESULT NetFwAuthorizedApplications_create( IUnknown *pUnkOuter, LPVOID *ppObj )
fa
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
fa
)
);
if
(
!
fa
)
return
E_OUTOFMEMORY
;
fa
->
v
tbl
=
&
fw_apps_vtbl
;
fa
->
INetFwAuthorizedApplications_iface
.
lpV
tbl
=
&
fw_apps_vtbl
;
fa
->
refs
=
1
;
*
ppObj
=
&
fa
->
vtbl
;
*
ppObj
=
&
fa
->
INetFwAuthorizedApplications_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