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
6419969c
Commit
6419969c
authored
Aug 31, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Move ISvBgCm_Constructor() to avoid a forward declaration.
parent
47a70596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
21 deletions
+15
-21
shv_bg_cmenu.c
dlls/shell32/shv_bg_cmenu.c
+15
-21
No files found.
dlls/shell32/shv_bg_cmenu.c
View file @
6419969c
...
...
@@ -49,33 +49,12 @@ typedef struct
UINT
verb_offset
;
}
BgCmImpl
;
static
const
IContextMenu2Vtbl
cmvt
;
static
inline
BgCmImpl
*
impl_from_IContextMenu2
(
IContextMenu2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
BgCmImpl
,
IContextMenu2_iface
);
}
/**************************************************************************
* ISVBgCm_Constructor()
*/
IContextMenu2
*
ISvBgCm_Constructor
(
IShellFolder
*
pSFParent
,
BOOL
bDesktop
)
{
BgCmImpl
*
cm
;
cm
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
BgCmImpl
));
cm
->
IContextMenu2_iface
.
lpVtbl
=
&
cmvt
;
cm
->
ref
=
1
;
cm
->
pSFParent
=
pSFParent
;
cm
->
bDesktop
=
bDesktop
;
if
(
pSFParent
)
IShellFolder_AddRef
(
pSFParent
);
TRACE
(
"(%p)->()
\n
"
,
cm
);
return
&
cm
->
IContextMenu2_iface
;
}
/**************************************************************************
* ISVBgCm_fnQueryInterface
*/
static
HRESULT
WINAPI
ISVBgCm_fnQueryInterface
(
IContextMenu2
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
...
...
@@ -461,3 +440,18 @@ static const IContextMenu2Vtbl cmvt =
ISVBgCm_fnGetCommandString
,
ISVBgCm_fnHandleMenuMsg
};
IContextMenu2
*
ISvBgCm_Constructor
(
IShellFolder
*
pSFParent
,
BOOL
bDesktop
)
{
BgCmImpl
*
cm
;
cm
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
cm
));
cm
->
IContextMenu2_iface
.
lpVtbl
=
&
cmvt
;
cm
->
ref
=
1
;
cm
->
pSFParent
=
pSFParent
;
cm
->
bDesktop
=
bDesktop
;
if
(
pSFParent
)
IShellFolder_AddRef
(
pSFParent
);
TRACE
(
"(%p)->()
\n
"
,
cm
);
return
&
cm
->
IContextMenu2_iface
;
}
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