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
614b7d74
Commit
614b7d74
authored
Oct 29, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix rounding issue in edit tests for char pos messages.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
b112b4d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
edit.c
dlls/user32/tests/edit.c
+6
-6
No files found.
dlls/user32/tests/edit.c
View file @
614b7d74
...
...
@@ -1150,7 +1150,7 @@ static void test_char_from_pos(void)
SendMessageA
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
;
mid
=
lo
+
(
hi
-
lo
+
1
)
/
2
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
...
...
@@ -1168,7 +1168,7 @@ static void test_char_from_pos(void)
SendMessageA
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
;
mid
=
lo
+
(
hi
-
lo
+
1
)
/
2
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
...
...
@@ -1186,7 +1186,7 @@ static void test_char_from_pos(void)
SendMessageA
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
;
mid
=
lo
+
(
hi
-
lo
+
1
)
/
2
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
...
...
@@ -1204,7 +1204,7 @@ static void test_char_from_pos(void)
SendMessageA
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
+
1
;
mid
=
lo
+
(
hi
-
lo
+
1
)
/
2
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
...
...
@@ -1223,7 +1223,7 @@ static void test_char_from_pos(void)
SendMessageA
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
+
1
;
mid
=
lo
+
(
hi
-
lo
+
1
)
/
2
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
...
...
@@ -1242,7 +1242,7 @@ static void test_char_from_pos(void)
SendMessageA
(
hwEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"aa"
);
lo
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
0
,
0
));
hi
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
1
,
0
));
mid
=
lo
+
(
hi
-
lo
)
/
2
+
1
;
mid
=
lo
+
(
hi
-
lo
+
2
)
/
2
;
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
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