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
ed29ff8c
Commit
ed29ff8c
authored
Jun 22, 2011
by
Mariusz Pluciński
Committed by
Alexandre Julliard
Jun 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add support of registry-registered folders to IKnownFolderManager::GetFolder.
parent
c5bf1977
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
shellpath.c
dlls/shell32/shellpath.c
+15
-1
shellpath.c
dlls/shell32/tests/shellpath.c
+0
-3
No files found.
dlls/shell32/shellpath.c
View file @
ed29ff8c
...
...
@@ -3400,11 +3400,25 @@ static HRESULT WINAPI foldermanager_GetFolderIds(
static
BOOL
is_knownfolder
(
struct
foldermanager
*
fm
,
const
KNOWNFOLDERID
*
id
)
{
UINT
i
;
HRESULT
hr
;
LPWSTR
registryPath
=
NULL
;
HKEY
hKey
;
/* TODO: move all entries from "CSIDL_Data" static array to registry known folder descriptions */
for
(
i
=
0
;
i
<
fm
->
num_ids
;
i
++
)
if
(
IsEqualGUID
(
&
fm
->
ids
[
i
],
id
))
return
TRUE
;
return
FALSE
;
hr
=
get_known_folder_registry_path
(
id
,
&
registryPath
);
if
(
SUCCEEDED
(
hr
))
hr
=
HRESULT_FROM_WIN32
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
registryPath
,
0
,
0
,
&
hKey
));
if
(
SUCCEEDED
(
hr
))
{
hr
=
S_OK
;
RegCloseKey
(
hKey
);
}
return
hr
==
S_OK
;
}
static
HRESULT
WINAPI
foldermanager_GetFolder
(
...
...
dlls/shell32/tests/shellpath.c
View file @
ed29ff8c
...
...
@@ -1172,14 +1172,11 @@ static void test_knownFolders(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IKnownFolderManager_GetFolder
(
mgr
,
&
newFolderId
,
&
folder
);
todo_wine
ok
(
hr
==
S_OK
,
"failed to get known folder: 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IKnownFolder_GetId
(
folder
,
&
folderId
);
todo_wine
ok
(
hr
==
S_OK
,
"failed to get folder id: 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
IsEqualGUID
(
&
folderId
,
&
newFolderId
)
==
TRUE
,
"invalid KNOWNFOLDERID returned
\n
"
);
hr
=
IKnownFolder_GetPath
(
folder
,
0
,
&
folderPath
);
...
...
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