Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
00889f17
Commit
00889f17
authored
Aug 25, 2010
by
David Hedberg
Committed by
Alexandre Julliard
Aug 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement IExplorerBrowser::BrowseToObject.
parent
ecb02ec9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
2 deletions
+47
-2
ebrowser.c
dlls/shell32/ebrowser.c
+14
-2
ebrowser.c
dlls/shell32/tests/ebrowser.c
+33
-0
No files found.
dlls/shell32/ebrowser.c
View file @
00889f17
...
...
@@ -633,9 +633,21 @@ static HRESULT WINAPI IExplorerBrowser_fnBrowseToObject(IExplorerBrowser *iface,
IUnknown
*
punk
,
UINT
uFlags
)
{
ExplorerBrowserImpl
*
This
=
(
ExplorerBrowserImpl
*
)
iface
;
FIXME
(
"stub, %p (%p, 0x%x)
\n
"
,
This
,
punk
,
uFlags
);
LPITEMIDLIST
pidl
;
HRESULT
hr
;
TRACE
(
"%p (%p, 0x%x)
\n
"
,
This
,
punk
,
uFlags
);
return
E_NOTIMPL
;
if
(
!
punk
)
return
IExplorerBrowser_fnBrowseToIDList
(
iface
,
NULL
,
uFlags
);
hr
=
SHGetIDListFromObject
(
punk
,
&
pidl
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IExplorerBrowser_BrowseToIDList
(
iface
,
pidl
,
uFlags
);
ILFree
(
pidl
);
}
return
hr
;
}
static
HRESULT
WINAPI
IExplorerBrowser_fnFillFromObject
(
IExplorerBrowser
*
iface
,
...
...
dlls/shell32/tests/ebrowser.c
View file @
00889f17
...
...
@@ -760,6 +760,7 @@ static void test_navigation(void)
{
IExplorerBrowser
*
peb
,
*
peb2
;
IFolderView
*
pfv
;
IShellItem
*
psi
;
IShellFolder
*
psf
;
LPITEMIDLIST
pidl_current
,
pidl_child
;
DWORD
cookie
,
cookie2
;
...
...
@@ -920,6 +921,38 @@ static void test_navigation(void)
lres
=
IExplorerBrowser_Release
(
peb
);
ok
(
lres
==
0
,
"Got lres %d
\n
"
,
lres
);
/* BrowseToObject tests */
ebrowser_instantiate
(
&
peb
);
ebrowser_initialize
(
peb
);
/* Browse to the desktop by passing an IShellFolder */
hr
=
SHGetDesktopFolder
(
&
psf
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IExplorerBrowser_BrowseToObject
(
peb
,
(
IUnknown
*
)
psf
,
SBSP_DEFBROWSER
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
if
(
hr
==
S_OK
)
process_msgs
();
IShellFolder_Release
(
psf
);
}
/* Browse to the current directory by passing a ShellItem */
hr
=
pSHCreateShellItem
(
NULL
,
NULL
,
pidl_current
,
&
psi
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IExplorerBrowser_BrowseToObject
(
peb
,
(
IUnknown
*
)
psi
,
SBSP_DEFBROWSER
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
process_msgs
();
IShellItem_Release
(
psi
);
}
IExplorerBrowser_Destroy
(
peb
);
lres
=
IExplorerBrowser_Release
(
peb
);
ok
(
lres
==
0
,
"Got lres %d
\n
"
,
lres
);
/* Cleanup */
RemoveDirectoryW
(
child_path
);
ILFree
(
pidl_current
);
...
...
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