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
d30f1fd7
Commit
d30f1fd7
authored
Jul 05, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jul 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some failing tests.
parent
aeb4e6e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
edit.c
dlls/user/edit.c
+1
-1
edit.c
dlls/user/tests/edit.c
+3
-3
No files found.
dlls/user/edit.c
View file @
d30f1fd7
...
...
@@ -1457,7 +1457,7 @@ static INT EDIT_CharFromPos(EDITSTATE *es, INT x, INT y, LPBOOL after_wrap)
x_low
=
x_now
;
}
}
if
(
abs
(
x_high
-
x
)
<=
abs
(
x_low
-
x
)
+
1
)
if
(
abs
(
x_high
-
x
)
+
1
<=
abs
(
x_low
-
x
)
)
index
=
high
;
else
index
=
low
;
...
...
dlls/user/tests/edit.c
View file @
d30f1fd7
...
...
@@ -865,7 +865,7 @@ static void test_edit_control_4(void)
SendMessage
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
;
mid
=
lo
+
(
hi
-
lo
)
/
2
+
1
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
(
LPARAM
)
i
));
...
...
@@ -883,7 +883,7 @@ static void test_edit_control_4(void)
SendMessage
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
;
mid
=
lo
+
(
hi
-
lo
)
/
2
+
1
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
(
LPARAM
)
i
));
...
...
@@ -901,7 +901,7 @@ static void test_edit_control_4(void)
SendMessage
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
;
mid
=
lo
+
(
hi
-
lo
)
/
2
+
1
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessage
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
(
LPARAM
)
i
));
...
...
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