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
7b2bb14b
Commit
7b2bb14b
authored
Oct 21, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Moved HLinkBrowseContext_Constructor to avoid vtbl forward declaration.
parent
ccc66af6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
browse_ctx.c
dlls/hlink/browse_ctx.c
+21
-25
No files found.
dlls/hlink/browse_ctx.c
View file @
7b2bb14b
...
...
@@ -24,8 +24,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
hlink
);
static
const
IHlinkBrowseContextVtbl
hlvt
;
typedef
struct
{
IHlinkBrowseContext
IHlinkBrowseContext_iface
;
...
...
@@ -39,29 +37,6 @@ static inline HlinkBCImpl *impl_from_IHlinkBrowseContext(IHlinkBrowseContext *if
return
CONTAINING_RECORD
(
iface
,
HlinkBCImpl
,
IHlinkBrowseContext_iface
);
}
HRESULT
HLinkBrowseContext_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
HlinkBCImpl
*
hl
;
TRACE
(
"unkOut=%p riid=%s
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
hl
=
heap_alloc_zero
(
sizeof
(
HlinkBCImpl
));
if
(
!
hl
)
return
E_OUTOFMEMORY
;
hl
->
ref
=
1
;
hl
->
IHlinkBrowseContext_iface
.
lpVtbl
=
&
hlvt
;
*
ppv
=
hl
;
return
S_OK
;
}
static
HRESULT
WINAPI
IHlinkBC_fnQueryInterface
(
IHlinkBrowseContext
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
...
...
@@ -297,3 +272,24 @@ static const IHlinkBrowseContextVtbl hlvt =
IHlinkBC_Clone
,
IHlinkBC_Close
};
HRESULT
HLinkBrowseContext_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
{
HlinkBCImpl
*
hl
;
TRACE
(
"unkOut=%p riid=%s
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
hl
=
heap_alloc_zero
(
sizeof
(
HlinkBCImpl
));
if
(
!
hl
)
return
E_OUTOFMEMORY
;
hl
->
ref
=
1
;
hl
->
IHlinkBrowseContext_iface
.
lpVtbl
=
&
hlvt
;
*
ppv
=
hl
;
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