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
b8220e72
Commit
b8220e72
authored
Mar 06, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/shellview: Implement IFolderView::GetFolder() for IID_IShellFolder.
parent
8c92ba00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
4 deletions
+35
-4
shlview.c
dlls/shell32/shlview.c
+13
-3
shlview.c
dlls/shell32/tests/shlview.c
+22
-1
No files found.
dlls/shell32/shlview.c
View file @
b8220e72
...
...
@@ -2711,9 +2711,19 @@ static HRESULT WINAPI IFView_SetCurrentViewMode(IFolderView *iface, UINT mode)
static
HRESULT
WINAPI
IFView_GetFolder
(
IFolderView
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
IShellViewImpl
*
This
=
impl_from_IFolderView
(
iface
);
FIXME
(
"(%p)->(%s, %p), stub
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOTIMPL
;
IShellViewImpl
*
This
=
impl_from_IFolderView
(
iface
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
if
(
!
ppv
)
return
E_POINTER
;
if
(
IsEqualIID
(
riid
,
&
IID_IShellFolder
))
{
*
ppv
=
This
->
pSFParent
;
return
S_OK
;
}
return
E_NOINTERFACE
;
}
static
HRESULT
WINAPI
IFView_Item
(
IFolderView
*
iface
,
int
index
,
PITEMID_CHILD
*
ppidl
)
...
...
dlls/shell32/tests/shlview.c
View file @
b8220e72
...
...
@@ -347,7 +347,7 @@ if (0)
static
void
test_IFolderView
(
void
)
{
IShellFolder
*
desktop
;
IShellFolder
*
desktop
,
*
folder
;
FOLDERSETTINGS
settings
;
IShellView
*
view
;
IShellBrowser
*
browser
;
...
...
@@ -356,6 +356,7 @@ static void test_IFolderView(void)
HRESULT
hr
;
INT
ret
;
POINT
pt
;
LONG
ref1
,
ref2
;
RECT
r
;
hr
=
SHGetDesktopFolder
(
&
desktop
);
...
...
@@ -448,6 +449,26 @@ if (0)
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
folderview_getfocused_seq
,
"IFolderView::GetFocusedItem"
,
FALSE
);
/* IFolderView::GetFolder, just return pointer */
if
(
0
)
{
/* crashes on XP */
hr
=
IFolderView_GetFolder
(
fv
,
NULL
,
(
void
**
)
&
folder
);
hr
=
IFolderView_GetFolder
(
fv
,
NULL
,
NULL
);
}
hr
=
IFolderView_GetFolder
(
fv
,
&
IID_IShellFolder
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got (0x%08x)
\n
"
,
hr
);
ref1
=
IShellFolder_AddRef
(
desktop
);
IShellFolder_Release
(
desktop
);
hr
=
IFolderView_GetFolder
(
fv
,
&
IID_IShellFolder
,
(
void
**
)
&
folder
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ref2
=
IShellFolder_AddRef
(
desktop
);
IShellFolder_Release
(
desktop
);
ok
(
ref1
==
ref2
,
"expected same refcount, got %d
\n
"
,
ref2
);
ok
(
desktop
==
folder
,
"
\n
"
);
IShellBrowser_Release
(
browser
);
IFolderView_Release
(
fv
);
IShellView_Release
(
view
);
...
...
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