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
97db9029
Commit
97db9029
authored
Jul 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Avoid using non-ASCII characters in strings.
parent
9370c382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
codepage.c
dlls/kernel32/tests/codepage.c
+2
-2
No files found.
dlls/kernel32/tests/codepage.c
View file @
97db9029
...
...
@@ -320,7 +320,7 @@ static void test_string_conversion(LPBOOL bUsedDefaultChar)
SetLastError
(
0xdeadbeef
);
ret
=
WideCharToMultiByte
(
950
,
0
,
dbwcs
,
-
1
,
mbs
,
sizeof
(
mbs
),
NULL
,
bUsedDefaultChar
);
ok
(
ret
==
5
,
"ret is %d
\n
"
,
ret
);
ok
(
!
strcmp
(
mbs
,
"
H
"
),
"mbs is %s
\n
"
,
mbs
);
ok
(
!
strcmp
(
mbs
,
"
\xb5
H
\xa9\xd2
"
),
"mbs is %s
\n
"
,
mbs
);
if
(
bUsedDefaultChar
)
ok
(
*
bUsedDefaultChar
==
FALSE
,
"bUsedDefaultChar is %d
\n
"
,
*
bUsedDefaultChar
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"GetLastError() is %u
\n
"
,
GetLastError
());
...
...
@@ -334,7 +334,7 @@ static void test_string_conversion(LPBOOL bUsedDefaultChar)
SetLastError
(
0xdeadbeef
);
ret
=
WideCharToMultiByte
(
950
,
0
,
dbwcs
,
1
,
mbs
,
sizeof
(
mbs
),
NULL
,
bUsedDefaultChar
);
ok
(
ret
==
2
,
"ret is %d
\n
"
,
ret
);
ok
(
!
strcmp
(
mbs
,
"H"
),
"mbs is %s
\n
"
,
mbs
);
ok
(
!
strcmp
(
mbs
,
"
\xb5
H"
),
"mbs is %s
\n
"
,
mbs
);
if
(
bUsedDefaultChar
)
ok
(
*
bUsedDefaultChar
==
FALSE
,
"bUsedDefaultChar is %d
\n
"
,
*
bUsedDefaultChar
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"GetLastError() is %u
\n
"
,
GetLastError
());
...
...
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