Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
c4c96383
Commit
c4c96383
authored
Nov 28, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Set the window title to the current directory.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e339992
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
explorer.c
programs/explorer/explorer.c
+23
-1
No files found.
programs/explorer/explorer.c
View file @
c4c96383
...
...
@@ -259,10 +259,32 @@ static void update_path_box(explorer_info *info)
static
HRESULT
WINAPI
IExplorerBrowserEventsImpl_fnOnNavigationComplete
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidl
)
{
IExplorerBrowserEventsImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
IShellFolder
*
parent
;
PCUITEMID_CHILD
child_pidl
;
HRESULT
hres
;
STRRET
strret
;
WCHAR
*
name
;
ILFree
(
This
->
info
->
pidl
);
This
->
info
->
pidl
=
ILClone
(
pidl
);
update_path_box
(
This
->
info
);
return
S_OK
;
hres
=
SHBindToParent
(
pidl
,
&
IID_IShellFolder
,
(
void
**
)
&
parent
,
&
child_pidl
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IShellFolder_GetDisplayNameOf
(
parent
,
child_pidl
,
SHGDN_FORADDRESSBAR
,
&
strret
);
if
(
SUCCEEDED
(
hres
))
hres
=
StrRetToStrW
(
&
strret
,
child_pidl
,
&
name
);
if
(
SUCCEEDED
(
hres
))
{
SetWindowTextW
(
This
->
info
->
main_window
,
name
);
CoTaskMemFree
(
name
);
}
IShellFolder_Release
(
parent
);
}
return
hres
;
}
static
HRESULT
WINAPI
IExplorerBrowserEventsImpl_fnOnNavigationFailed
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidl
)
...
...
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