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
7797f256
Commit
7797f256
authored
Jul 10, 1999
by
Francois Boisvert
Committed by
Alexandre Julliard
Jul 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made IShellFolder::fnParseDisplayName return a relative pidl.
parent
b2e91b6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
shlfolder.c
dlls/shell32/shlfolder.c
+12
-2
No files found.
dlls/shell32/shlfolder.c
View file @
7797f256
...
...
@@ -387,7 +387,7 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
ICOM_THIS
(
IGenericSFImpl
,
iface
);
HRESULT
hr
=
E_OUTOFMEMORY
;
LPITEMIDLIST
pidlFull
=
NULL
,
pidlTemp
=
NULL
,
pidlOld
=
NULL
;
LPITEMIDLIST
pidlFull
=
NULL
,
pidlTemp
=
NULL
,
pidlOld
=
NULL
,
pidlNew
=
NULL
;
LPSTR
pszNext
=
NULL
;
CHAR
szTemp
[
MAX_PATH
],
szElement
[
MAX_PATH
];
BOOL
bIsFile
;
...
...
@@ -398,6 +398,7 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
{
hr
=
E_FAIL
;
WideCharToLocal
(
szTemp
,
lpszDisplayName
,
lstrlenW
(
lpszDisplayName
)
+
1
);
if
(
szTemp
[
0
])
{
if
(
strcmp
(
szTemp
,
"Desktop"
)
==
0
)
{
pidlFull
=
_ILCreateDesktop
();
...
...
@@ -416,7 +417,6 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
}
}
}
/* check if the lpszDisplayName is Folder or File*/
bIsFile
=
!
(
GetFileAttributesA
(
szTemp
)
&
FILE_ATTRIBUTE_DIRECTORY
);
pszNext
=
GetNextElement
(
szTemp
,
szElement
,
MAX_PATH
);
...
...
@@ -441,6 +441,16 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
}
hr
=
S_OK
;
}
/* The following code is to make the absolute
pidl (pidlFull) relative to the current folder */
if
((
pidlNew
=
ILFindChild
(
This
->
pMyPidl
,
pidlFull
)))
{
pidlOld
=
pidlFull
;
pidlFull
=
ILClone
(
pidlNew
);
SHFree
(
pidlOld
);
}
}
}
}
...
...
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