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
79052f58
Commit
79052f58
authored
Oct 31, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Fix more signed char issues.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
93140869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
string.c
dlls/msvcrt/tests/string.c
+5
-5
No files found.
dlls/msvcrt/tests/string.c
View file @
79052f58
...
...
@@ -2936,7 +2936,7 @@ static void test_tolower(void)
ch
=
0xF4
;
errno
=
0xdeadbeef
;
ret
=
p_tolower
(
ch
);
ret
=
p_tolower
(
(
signed
char
)
ch
);
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
)
...
...
@@ -2950,7 +2950,7 @@ static void test_tolower(void)
ch
=
0xD0
;
errno
=
0xdeadbeef
;
ret
=
p_tolower
(
ch
);
ret
=
p_tolower
(
(
signed
char
)
ch
);
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
)
...
...
@@ -2962,15 +2962,15 @@ static void test_tolower(void)
if
(
!
len
||
ret
==
(
unsigned
char
)
lch
)
ok
(
errno
==
EILSEQ
,
"errno = %d
\n
"
,
errno
);
ret
=
p_tolower
(
0xD0
);
ret
=
p_tolower
(
(
unsigned
char
)
0xD0
);
ok
(
ret
==
0xD0
,
"ret = %x
\n
"
,
ret
);
ok
(
setlocale
(
LC_ALL
,
"us"
)
!=
NULL
,
"setlocale failed
\n
"
);
ret
=
p_tolower
((
char
)
0xD0
);
ret
=
p_tolower
((
signed
char
)
0xD0
);
ok
(
ret
==
0xF0
,
"ret = %x
\n
"
,
ret
);
ret
=
p_tolower
(
0xD0
);
ret
=
p_tolower
(
(
unsigned
char
)
0xD0
);
ok
(
ret
==
0xF0
,
"ret = %x
\n
"
,
ret
);
setlocale
(
LC_ALL
,
"C"
);
...
...
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