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
ead42d7f
Commit
ead42d7f
authored
Apr 23, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Fix a few tests that fail in XP and up.
parent
6c59a15a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
editor.c
dlls/riched20/tests/editor.c
+10
-4
No files found.
dlls/riched20/tests/editor.c
View file @
ead42d7f
...
...
@@ -680,9 +680,12 @@ static void test_WM_GETTEXT(void)
/* Test for behavior in overflow case */
memset
(
buffer
,
0
,
1024
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
strlen
(
text
),
(
LPARAM
)
buffer
);
ok
(
result
==
0
,
"WM_GETTEXT returned %d, expected 0
\n
"
,
result
);
ok
(
result
==
0
||
result
==
lstrlenA
(
text
)
-
1
,
/* XP, win2k3 */
"WM_GETTEXT returned %d, expected 0 or %d
\n
"
,
result
,
lstrlenA
(
text
)
-
1
);
result
=
strcmp
(
buffer
,
text
);
if
(
result
)
result
=
strncmp
(
buffer
,
text
,
lstrlenA
(
text
)
-
1
);
/* XP, win2k3 */
ok
(
result
==
0
,
"WM_GETTEXT: settext and gettext differ. strcmp: %d
\n
"
,
result
);
...
...
@@ -704,9 +707,12 @@ static void test_WM_GETTEXT(void)
/* Test for behavior of CRLF conversion in case of overflow */
memset
(
buffer
,
0
,
1024
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
strlen
(
text2
),
(
LPARAM
)
buffer
);
ok
(
result
==
0
,
"WM_GETTEXT returned %d, expected 0
\n
"
,
result
);
ok
(
result
==
0
||
result
==
lstrlenA
(
text2
)
-
1
,
/* XP, win2k3 */
"WM_GETTEXT returned %d, expected 0 or %d
\n
"
,
result
,
lstrlenA
(
text2
)
-
1
);
result
=
strcmp
(
buffer
,
text2
);
if
(
result
)
result
=
strncmp
(
buffer
,
text2
,
lstrlenA
(
text2
)
-
1
);
/* XP, win2k3 */
ok
(
result
==
0
,
"WM_GETTEXT: settext and gettext differ. strcmp: %d
\n
"
,
result
);
...
...
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