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
b52146d9
Commit
b52146d9
authored
Jan 14, 2006
by
Michael Jung
Committed by
Alexandre Julliard
Jan 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unixfs: Fix ParseDisplayName.
Build an absolute pidl to query attributes in UnixFolder::ParseDisplayName.
parent
d582fdd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+9
-3
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
b52146d9
...
...
@@ -905,12 +905,18 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_ParseDisplayName(IShellFolder2* i
{
IShellFolder
*
pParentSF
;
LPCITEMIDLIST
pidlLast
;
LPITEMIDLIST
pidlComplete
=
ILCombine
(
This
->
m_pidlLocation
,
*
ppidl
);
HRESULT
hr
;
hr
=
SHBindToParent
(
*
ppidl
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
pParentSF
,
&
pidlLast
);
if
(
FAILED
(
hr
))
return
E_FAIL
;
hr
=
SHBindToParent
(
pidlComplete
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
pParentSF
,
&
pidlLast
);
if
(
FAILED
(
hr
))
{
FIXME
(
"SHBindToParent failed! hr = %08lx
\n
"
,
hr
);
ILFree
(
pidlComplete
);
return
E_FAIL
;
}
IShellFolder_GetAttributesOf
(
pParentSF
,
1
,
&
pidlLast
,
pdwAttributes
);
IShellFolder_Release
(
pParentSF
);
ILFree
(
pidlComplete
);
}
if
(
!
result
)
TRACE
(
"FAILED!
\n
"
);
...
...
@@ -1272,7 +1278,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_SetNameOf(IShellFolder2* iface, H
}
else
{
int
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
szDest
,
-
1
,
NULL
,
0
);
int
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
szDest
,
-
1
,
NULL
,
0
);
pwszDosDest
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
szDest
,
-
1
,
pwszDosDest
,
len
);
...
...
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