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
a7ebdf2e
Commit
a7ebdf2e
authored
Mar 13, 2008
by
Stefan Leichter
Committed by
Alexandre Julliard
Mar 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix SHGetFolderPathAndSubDir tests.
parent
78d0940e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
shlfolder.c
dlls/shell32/tests/shlfolder.c
+13
-2
No files found.
dlls/shell32/tests/shlfolder.c
View file @
a7ebdf2e
...
...
@@ -1414,7 +1414,18 @@ static void testSHGetFolderPathAndSubDirA(void)
/* test invalid forth parameter */
ret
=
pSHGetFolderPathAndSubDirA
(
NULL
,
CSIDL_FLAG_DONT_VERIFY
|
CSIDL_LOCAL_APPDATA
,
NULL
,
2
,
wine
,
testpath
);
ok
(
E_INVALIDARG
==
ret
,
"expected E_INVALIDARG, got %x
\n
"
,
ret
);
switch
(
ret
)
{
case
S_OK
:
/* winvista */
ok
(
!
strncmp
(
appdata
,
testpath
,
strlen
(
appdata
)),
"expected %s to start with %s
\n
"
,
testpath
,
appdata
);
ok
(
!
lstrcmpA
(
&
testpath
[
1
+
strlen
(
appdata
)],
winetemp
),
"expected %s to end with %s
\n
"
,
testpath
,
winetemp
);
break
;
case
E_INVALIDARG
:
/* winxp, win2k3 */
break
;
default:
ok
(
0
,
"expected S_OK or E_INVALIDARG, got %x
\n
"
,
ret
);
}
/* test fifth parameter */
testpath
[
0
]
=
'\0'
;
...
...
@@ -1438,7 +1449,7 @@ static void testSHGetFolderPathAndSubDirA(void)
testpath
[
0
]
=
'\0'
;
ret
=
pSHGetFolderPathAndSubDirA
(
NULL
,
CSIDL_FLAG_DONT_VERIFY
|
CSIDL_LOCAL_APPDATA
,
NULL
,
SHGFP_TYPE_CURRENT
,
wine
,
NULL
);
ok
(
S_OK
==
ret
,
"expected S_OK
, got %x
\n
"
,
ret
);
ok
(
(
S_OK
==
ret
)
||
(
E_INVALIDARG
==
ret
),
"expected S_OK or E_INVALIDARG
, got %x
\n
"
,
ret
);
/* test a not existing path */
testpath
[
0
]
=
'\0'
;
...
...
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