Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5902cfd2
Commit
5902cfd2
authored
Nov 09, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Fix failing test in UTF8 locales.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=52875
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
4281cb49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
editor.c
dlls/riched20/tests/editor.c
+4
-3
No files found.
dlls/riched20/tests/editor.c
View file @
5902cfd2
...
...
@@ -5877,6 +5877,7 @@ static void test_EM_STREAMIN(void)
char
buffer
[
1024
]
=
{
0
},
tmp
[
16
];
CHARRANGE
range
;
PARAFORMAT2
fmt
;
DWORD
len
;
const
char
*
streamText0
=
"{
\\
rtf1
\\
fi100
\\
li200
\\
rtlpar
\\
qr TestSomeText}"
;
const
char
*
streamText0a
=
"{
\\
rtf1
\\
fi100
\\
li200
\\
rtlpar
\\
qr TestSomeText
\\
par}"
;
...
...
@@ -6084,12 +6085,12 @@ static void test_EM_STREAMIN(void)
result
=
SendMessageA
(
hwndRichEdit
,
EM_STREAMIN
,
SF_TEXT
,
(
LPARAM
)
&
es
);
ok
(
result
==
8
,
"got %Id
\n
"
,
result
);
WideCharToMultiByte
(
CP_ACP
,
0
,
UTF8Split_exp
,
-
1
,
tmp
,
sizeof
(
tmp
),
NULL
,
NULL
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
UTF8Split_exp
,
-
1
,
tmp
,
sizeof
(
tmp
),
NULL
,
NULL
);
result
=
SendMessageA
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
3
,
ok
(
result
+
1
==
len
,
"EM_STREAMIN: Test UTF8Split returned %Id
\n
"
,
result
);
result
=
memcmp
(
buffer
,
tmp
,
3
);
result
=
memcmp
(
buffer
,
tmp
,
result
);
ok
(
result
==
0
,
"EM_STREAMIN: Test UTF8Split set wrong text: Result: %s
\n
"
,
buffer
);
ok
(
es
.
dwError
==
0
,
"EM_STREAMIN: Test UTF8Split set error %ld, expected %d
\n
"
,
es
.
dwError
,
0
);
...
...
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