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
bd74183b
Commit
bd74183b
authored
Mar 06, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Pass the full path to ParseDisplayName().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e864854c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
explorer.c
programs/explorer/explorer.c
+12
-1
No files found.
programs/explorer/explorer.c
View file @
bd74183b
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "wine/unicode.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "explorer_private.h"
#include "explorer_private.h"
#include "resource.h"
#include "resource.h"
...
@@ -631,16 +632,26 @@ static IShellFolder* get_starting_shell_folder(parameters_struct* params)
...
@@ -631,16 +632,26 @@ static IShellFolder* get_starting_shell_folder(parameters_struct* params)
{
{
IShellFolder
*
desktop
,
*
folder
;
IShellFolder
*
desktop
,
*
folder
;
LPITEMIDLIST
root_pidl
;
LPITEMIDLIST
root_pidl
;
WCHAR
*
fullpath
=
NULL
;
HRESULT
hres
;
HRESULT
hres
;
DWORD
size
;
SHGetDesktopFolder
(
&
desktop
);
SHGetDesktopFolder
(
&
desktop
);
if
(
!
params
->
root
[
0
])
if
(
!
params
->
root
[
0
])
{
{
return
desktop
;
return
desktop
;
}
}
size
=
GetFullPathNameW
(
params
->
root
,
0
,
fullpath
,
NULL
);
if
(
!
size
)
return
desktop
;
fullpath
=
heap_alloc
(
size
*
sizeof
(
WCHAR
));
GetFullPathNameW
(
params
->
root
,
size
,
fullpath
,
NULL
);
hres
=
IShellFolder_ParseDisplayName
(
desktop
,
NULL
,
NULL
,
hres
=
IShellFolder_ParseDisplayName
(
desktop
,
NULL
,
NULL
,
params
->
root
,
NULL
,
fullpath
,
NULL
,
&
root_pidl
,
NULL
);
&
root_pidl
,
NULL
);
heap_free
(
fullpath
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
{
{
...
...
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