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
a7269a10
Commit
a7269a10
authored
Oct 25, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some codepage tests under Windows 10.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b1fc819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
codepage.c
dlls/kernel32/tests/codepage.c
+7
-3
No files found.
dlls/kernel32/tests/codepage.c
View file @
a7269a10
...
...
@@ -271,7 +271,8 @@ static void test_other_invalid_parameters(void)
SetLastError
(
0xdeadbeef
);
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
w_string
,
w_string_len
,
c_string
,
c_string_len
,
c_string
,
NULL
);
ok
(
len
==
0
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"len=%d error=%x
\n
"
,
len
,
GetLastError
());
ok
((
len
==
0
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
||
broken
(
len
==
12
)
/* Win10 1709+ */
,
"len=%d error=%x
\n
"
,
len
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
len
=
WideCharToMultiByte
(
CP_SYMBOL
,
0
,
w_string
,
w_string_len
,
c_string
,
c_string_len
,
c_string
,
NULL
);
...
...
@@ -286,7 +287,8 @@ static void test_other_invalid_parameters(void)
SetLastError
(
0xdeadbeef
);
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
w_string
,
w_string_len
,
c_string
,
c_string_len
,
NULL
,
&
used
);
ok
(
len
==
0
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"len=%d error=%x
\n
"
,
len
,
GetLastError
());
ok
((
len
==
0
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
||
broken
(
len
==
12
)
/* Win10 1709+ */
,
"len=%d error=%x
\n
"
,
len
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
len
=
WideCharToMultiByte
(
CP_SYMBOL
,
0
,
w_string
,
w_string_len
,
c_string
,
c_string_len
,
NULL
,
&
used
);
...
...
@@ -304,7 +306,9 @@ static void test_other_invalid_parameters(void)
/* CP_UTF8, unrecognized flag and used not NULL => ERROR_INVALID_PARAMETER */
SetLastError
(
0xdeadbeef
);
len
=
WideCharToMultiByte
(
CP_UTF8
,
0x100
,
w_string
,
w_string_len
,
c_string
,
c_string_len
,
NULL
,
&
used
);
ok
(
len
==
0
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"len=%d error=%x
\n
"
,
len
,
GetLastError
());
ok
(
len
==
0
,
"wrong ret %d
\n
"
,
len
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_INVALID_FLAGS
/* Win10 1709+ */
,
"wrong error %u
\n
"
,
GetLastError
());
}
static
void
test_overlapped_buffers
(
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