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
5e90301b
Commit
5e90301b
authored
Jun 23, 2011
by
Mariusz Pluciński
Committed by
Alexandre Julliard
Jun 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add implementation of IKnownFolder::GetCategory.
parent
efc1162e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
shellpath.c
dlls/shell32/shellpath.c
+14
-2
shellpath.c
dlls/shell32/tests/shellpath.c
+0
-2
No files found.
dlls/shell32/shellpath.c
View file @
5e90301b
...
...
@@ -3222,8 +3222,20 @@ static HRESULT WINAPI knownfolder_GetCategory(
IKnownFolder
*
iface
,
KF_CATEGORY
*
pCategory
)
{
FIXME
(
"%p
\n
"
,
pCategory
);
return
E_NOTIMPL
;
struct
knownfolder
*
knownfolder
=
impl_from_IKnownFolder
(
iface
);
HRESULT
hr
=
S_OK
;
DWORD
dwSize
,
dwType
;
TRACE
(
"%p, %p
\n
"
,
knownfolder
,
pCategory
);
/* we can not get category for folder which is not registered */
if
(
!
knownfolder
->
registryPath
)
hr
=
E_FAIL
;
if
(
SUCCEEDED
(
hr
))
hr
=
HRESULT_FROM_WIN32
(
RegGetValueW
(
HKEY_LOCAL_MACHINE
,
knownfolder
->
registryPath
,
szCategory
,
RRF_RT_DWORD
,
&
dwType
,
pCategory
,
&
dwSize
));
return
hr
;
}
static
HRESULT
WINAPI
knownfolder_GetShellItem
(
...
...
dlls/shell32/tests/shellpath.c
View file @
5e90301b
...
...
@@ -1176,9 +1176,7 @@ static void test_knownFolders(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IKnownFolder_GetCategory
(
folder
,
&
cat
);
todo_wine
ok
(
hr
==
S_OK
,
"failed to get folder category: hr=0x%0x
\n
"
,
hr
);
todo_wine
ok
(
cat
==
KF_CATEGORY_PERUSER
,
"invalid category returned: %d, while %d (KF_CATEGORY_PERUSER) expected
\n
"
,
cat
,
KF_CATEGORY_PERUSER
);
hr
=
IKnownFolder_GetId
(
folder
,
&
folderId
);
...
...
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