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
e09f4ed0
Commit
e09f4ed0
authored
Jul 29, 2011
by
Mariusz Pluciński
Committed by
Alexandre Julliard
Aug 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Add notification about unknown known folders.
parent
9b98b1ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
shellpath.c
dlls/shell32/tests/shellpath.c
+39
-0
No files found.
dlls/shell32/tests/shellpath.c
View file @
e09f4ed0
...
...
@@ -1021,11 +1021,14 @@ static void check_known_folder(IKnownFolderManager *mgr, KNOWNFOLDERID *folderId
WCHAR
sName
[
1024
],
sRelativePath
[
MAX_PATH
];
BOOL
validPath
;
char
sParentGuid
[
39
];
BOOL
found
=
FALSE
;
while
(
known_folder
->
folderId
!=
NULL
)
{
if
(
IsEqualGUID
(
known_folder
->
folderId
,
folderId
))
{
found
=
TRUE
;
/* verify CSIDL */
if
(
known_folder
->
csidl
!=
NO_CSIDL
)
{
...
...
@@ -1082,6 +1085,42 @@ static void check_known_folder(IKnownFolderManager *mgr, KNOWNFOLDERID *folderId
}
known_folder
++
;
}
if
(
!
found
)
{
printGUID
(
folderId
,
sParentGuid
);
trace
(
"unknown known folder found: %s
\n
"
,
sParentGuid
);
hr
=
IKnownFolderManager_GetFolder
(
mgr
,
folderId
,
&
folder
);
ok
(
hr
==
S_OK
,
"cannot get known folder for %s
\n
"
,
sParentGuid
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IKnownFolder_GetFolderDefinition
(
folder
,
&
kfd
);
todo_wine
ok
(
hr
==
S_OK
,
"cannot get known folder definition for %s
\n
"
,
sParentGuid
);
if
(
SUCCEEDED
(
hr
))
{
trace
(
" category: %d
\n
"
,
kfd
.
category
);
trace
(
" name: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszName
));
trace
(
" description: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszDescription
));
printGUID
(
&
kfd
.
fidParent
,
sParentGuid
);
trace
(
" parent: %s
\n
"
,
sParentGuid
);
trace
(
" relative path: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszRelativePath
));
trace
(
" parsing name: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszParsingName
));
trace
(
" tooltip: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszTooltip
));
trace
(
" localized name: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszLocalizedName
));
trace
(
" icon: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszIcon
));
trace
(
" security: %s
\n
"
,
wine_dbgstr_w
(
kfd
.
pszSecurity
));
trace
(
" attributes: 0x%08x
\n
"
,
kfd
.
dwAttributes
);
trace
(
" flags: 0x%08x
\n
"
,
kfd
.
kfdFlags
);
printGUID
(
&
kfd
.
ftidType
,
sParentGuid
);
trace
(
" type: %s
\n
"
,
sParentGuid
);
FreeKnownFolderDefinitionFields
(
&
kfd
);
}
IKnownFolder_Release
(
folder
);
}
}
}
#undef NO_CSIDL
#undef CSIDL_TODO_WINE
...
...
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