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
8a40df98
Commit
8a40df98
authored
Feb 26, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Move IFSFolder_Constructor() to avoid forward declarations.
parent
a5560ebe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
44 deletions
+30
-44
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+30
-44
No files found.
dlls/shell32/shfldr_fs.c
View file @
8a40df98
...
...
@@ -78,11 +78,6 @@ typedef struct {
BOOL
fAcceptFmt
;
/* flag for pending Drop */
}
IGenericSFImpl
;
static
const
IShellFolder2Vtbl
sfvt
;
static
const
IPersistFolder3Vtbl
pfvt
;
static
const
IDropTargetVtbl
dtvt
;
static
const
ISFHelperVtbl
shvt
;
static
inline
IGenericSFImpl
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IGenericSFImpl
,
IUnknown_inner
);
...
...
@@ -199,45 +194,6 @@ static const shvheader GenericSFHeader[] = {
#define GENERICSHELLVIEWCOLUMNS 5
/**************************************************************************
* IFSFolder_Constructor
*
* NOTES
* creating undocumented ShellFS_Folder as part of an aggregation
* {F3364BA0-65B9-11CE-A9BA-00AA004AE837}
*
*/
HRESULT
WINAPI
IFSFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
IGenericSFImpl
*
sf
;
TRACE
(
"unkOut=%p %s
\n
"
,
pUnkOuter
,
shdebugstr_guid
(
riid
));
if
(
pUnkOuter
&&
!
IsEqualIID
(
riid
,
&
IID_IUnknown
))
return
CLASS_E_NOAGGREGATION
;
sf
=
LocalAlloc
(
LMEM_ZEROINIT
,
sizeof
(
IGenericSFImpl
));
if
(
!
sf
)
return
E_OUTOFMEMORY
;
sf
->
ref
=
0
;
sf
->
IUnknown_inner
.
lpVtbl
=
&
unkvt
;
sf
->
IShellFolder2_iface
.
lpVtbl
=
&
sfvt
;
sf
->
IPersistFolder3_iface
.
lpVtbl
=
&
pfvt
;
sf
->
IDropTarget_iface
.
lpVtbl
=
&
dtvt
;
sf
->
ISFHelper_iface
.
lpVtbl
=
&
shvt
;
sf
->
pclsid
=
(
CLSID
*
)
&
CLSID_ShellFSFolder
;
sf
->
outer_unk
=
pUnkOuter
?
pUnkOuter
:
&
sf
->
IUnknown_inner
;
if
(
FAILED
(
IUnknown_QueryInterface
(
&
sf
->
IUnknown_inner
,
riid
,
ppv
)))
{
IUnknown_Release
(
&
sf
->
IUnknown_inner
);
return
E_NOINTERFACE
;
}
TRACE
(
"--%p
\n
"
,
*
ppv
);
return
S_OK
;
}
/**************************************************************************
* IShellFolder_fnQueryInterface
*/
static
HRESULT
WINAPI
IShellFolder_fnQueryInterface
(
IShellFolder2
*
iface
,
REFIID
riid
,
...
...
@@ -1689,3 +1645,33 @@ static const IDropTargetVtbl dtvt = {
ISFDropTarget_DragLeave
,
ISFDropTarget_Drop
};
HRESULT
WINAPI
IFSFolder_Constructor
(
IUnknown
*
outer_unk
,
REFIID
riid
,
void
**
ppv
)
{
IGenericSFImpl
*
sf
;
HRESULT
hr
;
TRACE
(
"outer_unk=%p %s
\n
"
,
outer_unk
,
shdebugstr_guid
(
riid
));
if
(
outer_unk
&&
!
IsEqualIID
(
riid
,
&
IID_IUnknown
))
return
CLASS_E_NOAGGREGATION
;
sf
=
LocalAlloc
(
LMEM_ZEROINIT
,
sizeof
(
*
sf
));
if
(
!
sf
)
return
E_OUTOFMEMORY
;
sf
->
ref
=
1
;
sf
->
IUnknown_inner
.
lpVtbl
=
&
unkvt
;
sf
->
IShellFolder2_iface
.
lpVtbl
=
&
sfvt
;
sf
->
IPersistFolder3_iface
.
lpVtbl
=
&
pfvt
;
sf
->
IDropTarget_iface
.
lpVtbl
=
&
dtvt
;
sf
->
ISFHelper_iface
.
lpVtbl
=
&
shvt
;
sf
->
pclsid
=
(
CLSID
*
)
&
CLSID_ShellFSFolder
;
sf
->
outer_unk
=
outer_unk
?
outer_unk
:
&
sf
->
IUnknown_inner
;
hr
=
IUnknown_QueryInterface
(
&
sf
->
IUnknown_inner
,
riid
,
ppv
);
IUnknown_Release
(
&
sf
->
IUnknown_inner
);
TRACE
(
"--%p
\n
"
,
*
ppv
);
return
hr
;
}
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