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
28951a09
Commit
28951a09
authored
Jun 11, 2013
by
Tatyana Fokina
Committed by
Alexandre Julliard
Jun 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add test with a large string for CompareStringA.
parent
a60029f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
locale.c
dlls/kernel32/tests/locale.c
+8
-0
No files found.
dlls/kernel32/tests/locale.c
View file @
28951a09
...
...
@@ -1328,6 +1328,7 @@ static const struct comparestringa_entry comparestringa_data[] = {
static
void
test_CompareStringA
(
void
)
{
int
ret
,
i
;
char
a
[
256
];
LCID
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_DEFAULT
),
SORT_DEFAULT
);
for
(
i
=
0
;
i
<
sizeof
(
comparestringa_data
)
/
sizeof
(
struct
comparestringa_entry
);
i
++
)
...
...
@@ -1461,6 +1462,13 @@ static void test_CompareStringA(void)
todo_wine
ok
(
ret
==
CSTR_LESS_THAN
,
"
\'\\
xB9
\'
character should be greater than
\'
a
\'\n
"
);
ret
=
CompareStringA
(
lcid
,
0
,
"
\xB9
"
,
1
,
"b"
,
1
);
ok
(
ret
==
CSTR_LESS_THAN
,
"
\'\\
xB9
\'
character should be smaller than
\'
b
\'\n
"
);
memset
(
a
,
'a'
,
sizeof
(
a
));
SetLastError
(
0xdeadbeef
);
ret
=
CompareStringA
(
lcid
,
0
,
a
,
sizeof
(
a
),
a
,
sizeof
(
a
));
todo_wine
ok
(
GetLastError
()
==
0xdeadbeef
&&
ret
==
CSTR_EQUAL
,
"ret %d, error %d, expected value %d
\n
"
,
ret
,
GetLastError
(),
CSTR_EQUAL
);
}
static
void
test_LCMapStringA
(
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