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
6b1c6eeb
Commit
6b1c6eeb
authored
Sep 02, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Trace the result of a failing test.
parent
21cde57b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
editor.c
dlls/riched20/tests/editor.c
+12
-3
No files found.
dlls/riched20/tests/editor.c
View file @
6b1c6eeb
...
...
@@ -32,6 +32,17 @@
#include <time.h>
#include <wine/test.h>
static
CHAR
string1
[
MAX_PATH
],
string2
[
MAX_PATH
];
#define ok_w2(format, szString1, szString2) \
\
if (lstrcmpW(szString1, szString2) != 0) \
{ \
WideCharToMultiByte(CP_ACP, 0, szString1, -1, string1, MAX_PATH, NULL, NULL); \
WideCharToMultiByte(CP_ACP, 0, szString2, -1, string2, MAX_PATH, NULL, NULL); \
ok(0, format, string1, string2); \
}
static
HMODULE
hmoduleRichEdit
;
static
HWND
new_window
(
LPCTSTR
lpClassName
,
DWORD
dwStyle
,
HWND
parent
)
{
...
...
@@ -3439,9 +3450,7 @@ static void test_EM_SETTEXTEX(void)
setText
.
flags
=
ST_SELECTION
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
buf
);
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buf
);
ok
(
lstrcmpW
(
buf
,
TestItem1alt
)
==
0
,
"EM_GETTEXTEX results not what was set by EM_SETTEXTEX when"
" using ST_SELECTION on an RTF string and non-Unicode
\n
"
);
ok_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
TestItem1alt
,
buf
);
/* The following test demonstrates that EM_SETTEXTEX replacing a selection */
setText
.
codepage
=
1200
;
/* no constant for unicode */
...
...
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