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
9393580a
Commit
9393580a
authored
Jun 29, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Jun 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If the unixfs is rooted at the Desktop folder, forward
ParseDisplayName calls to it instead of to MyComputer.
parent
cafb5738
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
shell32_main.h
dlls/shell32/shell32_main.h
+1
-0
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+5
-2
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+30
-0
No files found.
dlls/shell32/shell32_main.h
View file @
9393580a
...
...
@@ -227,6 +227,7 @@ UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOperation,
extern
WCHAR
swShell32Name
[
MAX_PATH
];
BOOL
UNIXFS_is_rooted_at_desktop
(
void
);
extern
const
GUID
CLSID_UnixFolder
;
extern
const
GUID
CLSID_UnixDosFolder
;
...
...
dlls/shell32/shfldr_desktop.c
View file @
9393580a
...
...
@@ -186,8 +186,11 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
}
else
if
(
PathGetDriveNumberW
(
lpszDisplayName
)
>=
0
)
{
/* it's a filesystem path with a drive. Let MyComputer parse it */
pidlTemp
=
_ILCreateMyComputer
();
/* it's a filesystem path with a drive. Let MyComputer/UnixDosFolder parse it */
if
(
UNIXFS_is_rooted_at_desktop
())
pidlTemp
=
_ILCreateGuid
(
PT_GUID
,
&
CLSID_UnixDosFolder
);
else
pidlTemp
=
_ILCreateMyComputer
();
szNext
=
lpszDisplayName
;
}
else
if
(
PathIsUNCW
(
lpszDisplayName
))
...
...
dlls/shell32/shfldr_unixfs.c
View file @
9393580a
...
...
@@ -107,6 +107,36 @@ typedef struct _UnixFolder {
}
UnixFolder
;
/******************************************************************************
* UNIXFS_is_rooted_at_desktop [Internal]
*
* Checks if the unixfs namespace extension is rooted at desktop level.
*
* RETURNS
* TRUE, if unixfs is rooted at desktop level
* FALSE, if not.
*/
BOOL
UNIXFS_is_rooted_at_desktop
(
void
)
{
HKEY
hKey
;
WCHAR
*
pwszCLSID_UnixDosFolder
,
wszRootedAtDesktop
[
69
+
CHARS_IN_GUID
]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'E'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
'\\'
,
'D'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
,
'\\'
,
'N'
,
'a'
,
'm'
,
'e'
,
'S'
,
'p'
,
'a'
,
'c'
,
'e'
,
'\\'
,
0
};
if
(
FAILED
(
StringFromCLSID
(
&
CLSID_UnixDosFolder
,
&
pwszCLSID_UnixDosFolder
)))
return
FALSE
;
lstrcatW
(
wszRootedAtDesktop
,
pwszCLSID_UnixDosFolder
);
CoTaskMemFree
(
pwszCLSID_UnixDosFolder
);
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
wszRootedAtDesktop
,
0
,
KEY_READ
,
&
hKey
)
!=
ERROR_SUCCESS
)
return
FALSE
;
RegCloseKey
(
hKey
);
return
TRUE
;
}
/******************************************************************************
* UNIXFS_is_pidl_of_type [INTERNAL]
*
* Checks for the first SHITEMID of an ITEMIDLIST if it passes a filter.
...
...
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