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
8e0849f7
Commit
8e0849f7
authored
Jun 09, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched32/tests: Fix some test failures on Win9x/WinME/NT4.
parent
9da0b352
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
editor.c
dlls/riched32/tests/editor.c
+3
-1
No files found.
dlls/riched32/tests/editor.c
View file @
8e0849f7
...
...
@@ -650,6 +650,7 @@ static void check_EM_FINDTEXTEX(HWND hwnd, const char *name, struct find_s *f,
ft
.
chrg
.
cpMin
=
f
->
start
;
ft
.
chrg
.
cpMax
=
f
->
end
;
ft
.
lpstrText
=
f
->
needle
;
ft
.
chrgText
.
cpMax
=
0xdeadbeef
;
findloc
=
SendMessage
(
hwnd
,
EM_FINDTEXTEX
,
f
->
flags
,
(
LPARAM
)
&
ft
);
ok
(
findloc
==
f
->
expected_loc
,
"EM_FINDTEXTEX(%s,%d) '%s' in range(%d,%d), flags %08x, start at %d
\n
"
,
...
...
@@ -659,7 +660,8 @@ static void check_EM_FINDTEXTEX(HWND hwnd, const char *name, struct find_s *f,
name
,
id
,
f
->
needle
,
f
->
start
,
f
->
end
,
f
->
flags
,
ft
.
chrgText
.
cpMin
,
f
->
expected_loc
);
expected_end_loc
=
((
f
->
expected_loc
==
-
1
)
?
-
1
:
f
->
expected_loc
+
strlen
(
f
->
needle
));
ok
(
ft
.
chrgText
.
cpMax
==
expected_end_loc
,
ok
(
ft
.
chrgText
.
cpMax
==
expected_end_loc
||
broken
(
ft
.
chrgText
.
cpMin
==
-
1
&&
ft
.
chrgText
.
cpMax
==
0xdeadbeef
),
/* Win9x, WinME and NT4 */
"EM_FINDTEXTEX(%s,%d) '%s' in range(%d,%d), flags %08x, end at %d, expected %d
\n
"
,
name
,
id
,
f
->
needle
,
f
->
start
,
f
->
end
,
f
->
flags
,
ft
.
chrgText
.
cpMax
,
expected_end_loc
);
}
...
...
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