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
b408b5a9
Commit
b408b5a9
authored
Sep 12, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Fix tolower test failures.
parent
a818d5ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
string.c
dlls/msvcrt/tests/string.c
+9
-2
No files found.
dlls/msvcrt/tests/string.c
View file @
b408b5a9
...
...
@@ -2608,6 +2608,7 @@ static void test_wctomb(void)
static
void
test_tolower
(
void
)
{
WCHAR
chw
,
lower
;
char
ch
,
lch
;
int
ret
,
len
;
...
...
@@ -2638,7 +2639,10 @@ static void test_tolower(void)
ch
=
0xF4
;
errno
=
0xdeadbeef
;
ret
=
p_tolower
(
ch
);
len
=
LCMapStringA
(
0
,
LCMAP_LOWERCASE
,
&
ch
,
1
,
&
lch
,
1
);
if
(
!
MultiByteToWideChar
(
CP_ACP
,
MB_ERR_INVALID_CHARS
,
&
ch
,
1
,
&
chw
,
1
)
||
LCMapStringW
(
CP_ACP
,
LCMAP_LOWERCASE
,
&
chw
,
1
,
&
lower
,
1
)
!=
1
||
(
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
&
lower
,
1
,
&
lch
,
1
,
NULL
,
NULL
))
!=
1
)
len
=
0
;
if
(
len
)
ok
(
ret
==
(
unsigned
char
)
lch
||
broken
(
ret
==
ch
)
/*WinXP-*/
,
"ret = %x
\n
"
,
ret
);
else
...
...
@@ -2649,7 +2653,10 @@ static void test_tolower(void)
ch
=
0xD0
;
errno
=
0xdeadbeef
;
ret
=
p_tolower
(
ch
);
len
=
LCMapStringA
(
0
,
LCMAP_LOWERCASE
,
&
ch
,
1
,
&
lch
,
1
);
if
(
!
MultiByteToWideChar
(
CP_ACP
,
MB_ERR_INVALID_CHARS
,
&
ch
,
1
,
&
chw
,
1
)
||
LCMapStringW
(
CP_ACP
,
LCMAP_LOWERCASE
,
&
chw
,
1
,
&
lower
,
1
)
!=
1
||
(
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
&
lower
,
1
,
&
lch
,
1
,
NULL
,
NULL
))
!=
1
)
len
=
0
;
if
(
len
)
ok
(
ret
==
(
unsigned
char
)
lch
||
broken
(
ret
==
ch
)
/*WinXP-*/
,
"ret = %x
\n
"
,
ret
);
else
...
...
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