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
d2cce328
Commit
d2cce328
authored
Jul 09, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix tests under w2k8.
parent
44043a7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
ordinal.c
dlls/shlwapi/tests/ordinal.c
+17
-6
No files found.
dlls/shlwapi/tests/ordinal.c
View file @
d2cce328
...
...
@@ -64,22 +64,26 @@ static void test_GetAcceptLanguagesA(void)
SetLastError
(
ERROR_SUCCESS
);
retval
=
pGetAcceptLanguagesA
(
NULL
,
NULL
);
ok
(
retval
==
E_FAIL
,
ok
(
retval
==
E_FAIL
||
retval
==
E_INVALIDARG
,
/* w2k8 */
"function result wrong: got %08x; expected E_FAIL
\n
"
,
retval
);
ok
(
ERROR_SUCCESS
==
GetLastError
(),
"last error set to %u
\n
"
,
GetLastError
());
buffersize
=
sizeof
(
buffer
);
SetLastError
(
ERROR_SUCCESS
);
retval
=
pGetAcceptLanguagesA
(
NULL
,
&
buffersize
);
ok
(
retval
==
E_FAIL
,
ok
(
retval
==
E_FAIL
||
retval
==
E_INVALIDARG
,
/* w2k8 */
"function result wrong: got %08x; expected E_FAIL
\n
"
,
retval
);
ok
(
buffersize
==
sizeof
(
buffer
),
"buffersize was changed (2nd parameter; not on Win2k)
\n
"
);
ok
(
buffersize
==
sizeof
(
buffer
)
||
buffersize
==
0
,
/* w2k8*/
"buffersize was changed and is not 0; size (%d))
\n
"
,
buffersize
);
ok
(
ERROR_SUCCESS
==
GetLastError
(),
"last error set to %u
\n
"
,
GetLastError
());
SetLastError
(
ERROR_SUCCESS
);
retval
=
pGetAcceptLanguagesA
(
buffer
,
NULL
);
ok
(
retval
==
E_FAIL
,
ok
(
retval
==
E_FAIL
||
retval
==
E_INVALIDARG
,
/* w2k8 */
"function result wrong: got %08x; expected E_FAIL
\n
"
,
retval
);
ok
(
ERROR_SUCCESS
==
GetLastError
(),
"last error set to %u
\n
"
,
GetLastError
());
...
...
@@ -87,7 +91,8 @@ static void test_GetAcceptLanguagesA(void)
memset
(
buffer
,
0
,
sizeof
(
buffer
));
SetLastError
(
ERROR_SUCCESS
);
retval
=
pGetAcceptLanguagesA
(
buffer
,
&
buffersize
);
ok
(
retval
==
E_FAIL
,
ok
(
retval
==
E_FAIL
||
retval
==
E_INVALIDARG
,
/* w2k8 */
"function result wrong: got %08x; expected E_FAIL
\n
"
,
retval
);
ok
(
buffersize
==
0
,
"buffersize wrong(changed) got %08x; expected 0 (2nd parameter; not on Win2k)
\n
"
,
buffersize
);
...
...
@@ -363,6 +368,12 @@ static void test_GetShellSecurityDescriptor(void)
pGetShellSecurityDescriptor
=
(
void
*
)
GetProcAddress
(
hShlwapi
,(
char
*
)
475
);
if
(
!
pGetShellSecurityDescriptor
)
{
skip
(
"GetShellSecurityDescriptor not available
\n
"
);
return
;
}
psd
=
pGetShellSecurityDescriptor
(
NULL
,
2
);
ok
(
psd
==
NULL
,
"GetShellSecurityDescriptor should fail
\n
"
);
psd
=
pGetShellSecurityDescriptor
(
rgsup
,
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