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
c43d4450
Commit
c43d4450
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: Reorder functions to avoid vtbl forward declaration.
parent
f53d73a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
28 deletions
+23
-28
link.c
dlls/hlink/link.c
+23
-28
No files found.
dlls/hlink/link.c
View file @
c43d4450
...
...
@@ -37,10 +37,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(hlink);
/* known flags */
#define HLINK_SAVE_ALL (HLINK_SAVE_TARGET_FRAME_PRESENT|HLINK_SAVE_FRIENDLY_PRESENT|HLINK_SAVE_LOCATION_PRESENT|0x04|HLINK_SAVE_MONIKER_IS_ABSOLUTE|HLINK_SAVE_MONIKER_PRESENT)
static
const
IHlinkVtbl
hlvt
;
static
const
IPersistStreamVtbl
psvt
;
static
const
IDataObjectVtbl
dovt
;
typedef
struct
{
IHlink
IHlink_iface
;
...
...
@@ -110,30 +106,6 @@ static HRESULT __GetMoniker(HlinkImpl* This, IMoniker** moniker,
return
S_OK
;
}
HRESULT
WINAPI
HLink_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
HlinkImpl
*
hl
;
TRACE
(
"unkOut=%p riid=%s
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
hl
=
heap_alloc_zero
(
sizeof
(
HlinkImpl
));
if
(
!
hl
)
return
E_OUTOFMEMORY
;
hl
->
ref
=
1
;
hl
->
IHlink_iface
.
lpVtbl
=
&
hlvt
;
hl
->
IPersistStream_iface
.
lpVtbl
=
&
psvt
;
hl
->
IDataObject_iface
.
lpVtbl
=
&
dovt
;
*
ppv
=
hl
;
return
S_OK
;
}
static
HRESULT
WINAPI
IHlink_fnQueryInterface
(
IHlink
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
...
...
@@ -942,3 +914,26 @@ static const IPersistStreamVtbl psvt =
IPersistStream_fnSave
,
IPersistStream_fnGetSizeMax
,
};
HRESULT
WINAPI
HLink_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
{
HlinkImpl
*
hl
;
TRACE
(
"unkOut=%p riid=%s
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
hl
=
heap_alloc_zero
(
sizeof
(
HlinkImpl
));
if
(
!
hl
)
return
E_OUTOFMEMORY
;
hl
->
ref
=
1
;
hl
->
IHlink_iface
.
lpVtbl
=
&
hlvt
;
hl
->
IPersistStream_iface
.
lpVtbl
=
&
psvt
;
hl
->
IDataObject_iface
.
lpVtbl
=
&
dovt
;
*
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