Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aida Jonikienė
wine
Commits
bc38d5cd
Commit
bc38d5cd
authored
13 years ago
by
Mariusz Pluciński
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
shell32/tests: Test of IKnownFolder::GetFolderDefinition.
parent
3ea1fa17
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/shell32/tests/shellpath.c
+16
-0
16 additions, 0 deletions
dlls/shell32/tests/shellpath.c
with
16 additions
and
0 deletions
dlls/shell32/tests/shellpath.c
+
16
−
0
View file @
bc38d5cd
...
...
@@ -885,11 +885,13 @@ if (0) { /* crashes */
static
void
test_knownFolders
(
void
)
{
static
const
WCHAR
sWindows
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
0
};
HRESULT
hr
;
IKnownFolderManager
*
mgr
=
NULL
;
IKnownFolder
*
folder
=
NULL
;
KNOWNFOLDERID
folderId
;
KF_CATEGORY
cat
=
0
;
KNOWNFOLDER_DEFINITION
kfDefinition
;
int
csidl
;
LPWSTR
folderPath
;
KF_REDIRECTION_CAPABILITIES
redirectionCapabilities
=
1
;
...
...
@@ -943,6 +945,20 @@ static void test_knownFolders(void)
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"unexpected value from SetPath: 0x%08x
\n
"
,
hr
);
hr
=
IKnownFolder_GetFolderDefinition
(
folder
,
&
kfDefinition
);
todo_wine
ok
(
hr
==
S_OK
,
"failed to get folder definition: 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
todo_wine
ok
(
kfDefinition
.
category
==
KF_CATEGORY_FIXED
,
"invalid folder category: 0x%08x
\n
"
,
kfDefinition
.
category
);
todo_wine
ok
(
lstrcmpW
(
kfDefinition
.
pszName
,
sWindows
)
==
0
,
"invalid folder name: %s
\n
"
,
wine_dbgstr_w
(
kfDefinition
.
pszName
));
todo_wine
ok
(
kfDefinition
.
dwAttributes
==
0
,
"invalid folder attributes: %d
\n
"
,
kfDefinition
.
dwAttributes
);
FreeKnownFolderDefinitionFields
(
&
kfDefinition
);
}
hr
=
IKnownFolder_Release
(
folder
);
ok
(
hr
==
S_OK
,
"failed to release KnownFolder instance: 0x%08x
\n
"
,
hr
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment