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
97f4a203
Commit
97f4a203
authored
Oct 22, 2004
by
Stefan Leichter
Committed by
Alexandre Julliard
Oct 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GetAcceptLanguagesA tests for WinXP.
parent
149f70b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
14 deletions
+44
-14
ordinal.c
dlls/shlwapi/tests/ordinal.c
+44
-14
No files found.
dlls/shlwapi/tests/ordinal.c
View file @
97f4a203
...
...
@@ -98,25 +98,55 @@ static void test_GetAcceptLanguagesA(void)
buffersize
=
buffersize2
=
1
;
memset
(
buffer
,
0
,
sizeof
(
buffer
));
retval
=
pGetAcceptLanguagesA
(
buffer
,
&
buffersize
);
ok
(
retval
==
E_INVALIDARG
,
"function result wrong: got %08lx; expected E_INVALIDARG
\n
"
,
retval
);
ok
(
buffersize
==
0
,
"buffersize wrong: got %08lx, expected 0 (2nd parameter;Win2k)
\n
"
,
buffersize
);
ok
(
ERROR_INSUFFICIENT_BUFFER
==
GetLastError
(),
"last error wrong: got %08lx; expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
GetLastError
());
ok
(
buffersize2
==
strlen
(
buffer
),
"buffer content (length) wrong: got %08x, expected %08lx
\n
"
,
strlen
(
buffer
),
buffersize2
);
switch
(
retval
)
{
case
0L
:
ok
(
buffersize
==
exactsize
,
"buffersize wrong: got %08lx, expected %08lx (2nd parameter;Win2k)
\n
"
,
buffersize
,
exactsize
);
ok
(
ERROR_NO_IMPERSONATION_TOKEN
==
GetLastError
(),
"last error wrong: got %08lx; expected ERROR_NO_IMPERSONATION_TOKEN
\n
"
,
GetLastError
());
ok
(
exactsize
==
strlen
(
buffer
),
"buffer content (length) wrong: got %08x, expected %08lx
\n
"
,
strlen
(
buffer
),
exactsize
);
break
;
case
E_INVALIDARG
:
ok
(
buffersize
==
0
,
"buffersize wrong: got %08lx, expected 0 (2nd parameter;Win2k)
\n
"
,
buffersize
);
ok
(
ERROR_INSUFFICIENT_BUFFER
==
GetLastError
(),
"last error wrong: got %08lx; expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
GetLastError
());
ok
(
buffersize2
==
strlen
(
buffer
),
"buffer content (length) wrong: got %08x, expected %08lx
\n
"
,
strlen
(
buffer
),
buffersize2
);
break
;
default:
ok
(
0
,
"retval %08lx, size %08lx, buffer (%s), last error %ld
\n
"
,
retval
,
buffersize
,
buffer
,
GetLastError
());
break
;
}
buffersize
=
buffersize2
=
exactsize
;
memset
(
buffer
,
0
,
sizeof
(
buffer
));
SetLastError
(
ERROR_SUCCESS
);
retval
=
pGetAcceptLanguagesA
(
buffer
,
&
buffersize
);
ok
(
retval
==
E_INVALIDARG
,
"function result wrong: got %08lx; expected E_INVALIDARG
\n
"
,
retval
);
ok
(
buffersize
==
0
,
"buffersize wrong: got %08lx, expected 0 (2nd parameter;Win2k)
\n
"
,
buffersize
);
ok
(
ERROR_INSUFFICIENT_BUFFER
==
GetLastError
(),
"last error wrong: got %08lx; expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
GetLastError
());
ok
(
buffersize2
==
strlen
(
buffer
),
"buffer content (length) wrong: got %08x, expected %08lx
\n
"
,
strlen
(
buffer
),
buffersize2
);
switch
(
retval
)
{
case
0L
:
ok
(
buffersize
==
exactsize
,
"buffersize wrong: got %08lx, expected %08lx (2nd parameter;Win2k)
\n
"
,
buffersize
,
exactsize
);
ok
(
ERROR_SUCCESS
==
GetLastError
(),
"last error wrong: got %08lx; expected ERROR_SUCCESS
\n
"
,
GetLastError
());
ok
(
exactsize
==
strlen
(
buffer
),
"buffer content (length) wrong: got %08x, expected %08lx
\n
"
,
strlen
(
buffer
),
exactsize
);
break
;
case
E_INVALIDARG
:
ok
(
buffersize
==
0
,
"buffersize wrong: got %08lx, expected 0 (2nd parameter;Win2k)
\n
"
,
buffersize
);
ok
(
ERROR_INSUFFICIENT_BUFFER
==
GetLastError
(),
"last error wrong: got %08lx; expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
GetLastError
());
ok
(
buffersize2
==
strlen
(
buffer
),
"buffer content (length) wrong: got %08x, expected %08lx
\n
"
,
strlen
(
buffer
),
buffersize2
);
break
;
default:
ok
(
0
,
"retval %08lx, size %08lx, buffer (%s), last error %ld
\n
"
,
retval
,
buffersize
,
buffer
,
GetLastError
());
break
;
}
}
static
void
test_SHSearchMapInt
(
void
)
...
...
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