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
82ac4ae3
Commit
82ac4ae3
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 when expected known folder does not exists.
parent
e09f4ed0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
shellpath.c
dlls/shell32/tests/shellpath.c
+11
-1
No files found.
dlls/shell32/tests/shellpath.c
View file @
82ac4ae3
...
...
@@ -1010,6 +1010,7 @@ static const struct knownFolderDef known_folders[] = {
{
NULL
,
NULL
,
0
,
NULL
,
NULL
,
0
,
0
}
};
#undef KNOWN_FOLDER
BOOL
known_folder_found
[
sizeof
(
known_folders
)
/
sizeof
(
known_folders
[
0
])
-
1
];
static
void
check_known_folder
(
IKnownFolderManager
*
mgr
,
KNOWNFOLDERID
*
folderId
)
{
...
...
@@ -1021,14 +1022,15 @@ static void check_known_folder(IKnownFolderManager *mgr, KNOWNFOLDERID *folderId
WCHAR
sName
[
1024
],
sRelativePath
[
MAX_PATH
];
BOOL
validPath
;
char
sParentGuid
[
39
];
BOOL
*
current_known_folder_found
=
&
known_folder_found
[
0
];
BOOL
found
=
FALSE
;
while
(
known_folder
->
folderId
!=
NULL
)
{
if
(
IsEqualGUID
(
known_folder
->
folderId
,
folderId
))
{
*
current_known_folder_found
=
TRUE
;
found
=
TRUE
;
/* verify CSIDL */
if
(
known_folder
->
csidl
!=
NO_CSIDL
)
{
...
...
@@ -1084,6 +1086,7 @@ static void check_known_folder(IKnownFolderManager *mgr, KNOWNFOLDERID *folderId
break
;
}
known_folder
++
;
current_known_folder_found
++
;
}
if
(
!
found
)
...
...
@@ -1241,11 +1244,18 @@ static void test_knownFolders(void)
ok
(
hr
==
S_OK
,
"failed to release KnownFolder instance: 0x%08x
\n
"
,
hr
);
}
for
(
i
=
0
;
i
<
sizeof
(
known_folder_found
)
/
sizeof
(
known_folder_found
[
0
]);
++
i
)
known_folder_found
[
i
]
=
FALSE
;
hr
=
IKnownFolderManager_GetFolderIds
(
mgr
,
&
folders
,
&
nCount
);
ok
(
hr
==
S_OK
,
"failed to get known folders: 0x%08x
\n
"
,
hr
);
for
(
i
=
0
;
i
<
nCount
;
++
i
)
check_known_folder
(
mgr
,
&
folders
[
i
]);
for
(
i
=
0
;
i
<
sizeof
(
known_folder_found
)
/
sizeof
(
known_folder_found
[
0
]);
++
i
)
if
(
!
known_folder_found
[
i
])
trace
(
"Known folder %s not found on current platform
\n
"
,
known_folders
[
i
].
sFolderId
);
CoTaskMemFree
(
folders
);
/* test of registering new known folders */
...
...
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