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
86b063c1
Commit
86b063c1
authored
Apr 14, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix some tests that break in UTF-8 codepage.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dee9a361
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
resource.c
dlls/user32/tests/resource.c
+4
-4
wsprintf.c
dlls/user32/tests/wsprintf.c
+2
-2
No files found.
dlls/user32/tests/resource.c
View file @
86b063c1
...
...
@@ -172,11 +172,11 @@ static void test_accel1(void)
ac
[
n
++
].
fVirt
=
(
SHORT
)
0xffff
;
ac
[
n
].
cmd
=
0xfff0
;
ac
[
n
].
key
=
0xffff
;
ac
[
n
].
key
=
'B'
;
ac
[
n
++
].
fVirt
=
(
SHORT
)
0xfff0
;
ac
[
n
].
cmd
=
0xfff0
;
ac
[
n
].
key
=
0xffff
;
ac
[
n
].
key
=
'C'
;
ac
[
n
++
].
fVirt
=
0x0000
;
ac
[
n
].
cmd
=
0xfff0
;
...
...
@@ -204,12 +204,12 @@ static void test_accel1(void)
if
(
++
n
==
r
)
goto
done
;
ok
(
ac
[
n
].
cmd
==
0xfff0
,
"cmd 2 not preserved got %x
\n
"
,
ac
[
n
].
cmd
);
ok
(
(
ac
[
n
].
key
&
0xff
)
==
0xff
,
"key 2 not preserved got %x
\n
"
,
ac
[
n
].
key
);
ok
(
ac
[
n
].
key
==
'B'
,
"key 2 not preserved got %x
\n
"
,
ac
[
n
].
key
);
ok
(
ac
[
n
].
fVirt
==
0x0070
,
"fVirt 2 wrong got %x
\n
"
,
ac
[
n
].
fVirt
);
if
(
++
n
==
r
)
goto
done
;
ok
(
ac
[
n
].
cmd
==
0xfff0
,
"cmd 3 not preserved got %x
\n
"
,
ac
[
n
].
cmd
);
ok
(
(
ac
[
n
].
key
&
0xff
)
==
0xff
,
"key 3 not preserved got %x
\n
"
,
ac
[
n
].
key
);
ok
(
ac
[
n
].
key
==
'C'
,
"key 3 not preserved got %x
\n
"
,
ac
[
n
].
key
);
ok
(
ac
[
n
].
fVirt
==
0x0000
,
"fVirt 3 wrong got %x
\n
"
,
ac
[
n
].
fVirt
);
if
(
++
n
==
r
)
goto
done
;
...
...
dlls/user32/tests/wsprintf.c
View file @
86b063c1
...
...
@@ -95,7 +95,7 @@ static void wsprintfATest(void)
ok
(
!
strcmp
(
buf
,
i64_formats
[
i
].
res
),
"%u: wrong result [%s]
\n
"
,
i
,
buf
);
}
if
(
!
GetCPInfo
(
CP_ACP
,
&
cpinfo
)
||
cpinfo
.
MaxCharSize
<=
1
)
if
(
!
GetCPInfo
(
CP_ACP
,
&
cpinfo
)
||
cpinfo
.
MaxCharSize
!=
2
)
{
skip
(
"Multi-byte wsprintfA test isn't available for the current codepage
\n
"
);
return
;
...
...
@@ -199,7 +199,7 @@ static void wsprintfWTest(void)
ok
(
buf
[
0
]
==
L' '
,
"expected
\\
x0020, got
\\
x%04x
\n
"
,
buf
[
0
]);
ok
(
buf
[
1
]
==
wc99
,
"expected
\\
x%04x, got
\\
x%04x
\n
"
,
wc99
,
buf
[
1
]);
if
(
!
GetCPInfoExW
(
CP_ACP
,
0
,
&
cpinfoex
)
||
cpinfoex
.
MaxCharSize
<=
1
)
if
(
!
GetCPInfoExW
(
CP_ACP
,
0
,
&
cpinfoex
)
||
cpinfoex
.
MaxCharSize
!=
2
)
{
skip
(
"Multi-byte wsprintfW test isn't available for the current codepage
\n
"
);
return
;
...
...
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