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
baa41970
Commit
baa41970
authored
Feb 23, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: EM_GETSELTEXT's wparam is not used and should be 0.
parent
002860d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
editor.c
dlls/riched20/tests/editor.c
+2
-2
richole.c
dlls/riched20/tests/richole.c
+2
-2
No files found.
dlls/riched20/tests/editor.c
View file @
baa41970
...
...
@@ -5094,7 +5094,7 @@ static void test_EM_EXSETSEL(void)
cr
.
cpMin
=
4
;
cr
.
cpMax
=
8
;
result
=
SendMessageA
(
hwndRichEdit
,
EM_EXSETSEL
,
0
,
(
LPARAM
)
&
cr
);
ok
(
result
==
8
,
"EM_EXSETSEL return %Id expected 8
\n
"
,
result
);
result
=
SendMessageA
(
hwndRichEdit
,
EM_GETSELTEXT
,
sizeof
(
bufA
)
,
(
LPARAM
)
bufA
);
result
=
SendMessageA
(
hwndRichEdit
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
bufA
);
ok
(
!
strcmp
(
bufA
,
"ef
\x8e\xf0
g"
),
"EM_GETSELTEXT return incorrect string
\n
"
);
SendMessageA
(
hwndRichEdit
,
EM_EXGETSEL
,
0
,
(
LPARAM
)
&
cr
);
ok
(
cr
.
cpMin
==
4
,
"Selection start incorrectly: %ld expected 4
\n
"
,
cr
.
cpMin
);
...
...
@@ -5169,7 +5169,7 @@ static void test_EM_SETSEL(void)
/* 012345 6 78901 */
result
=
SendMessageA
(
hwndRichEdit
,
EM_SETSEL
,
4
,
8
);
ok
(
result
==
8
,
"EM_SETSEL return %Id expected 8
\n
"
,
result
);
result
=
SendMessageA
(
hwndRichEdit
,
EM_GETSELTEXT
,
sizeof
(
buffA
)
,
(
LPARAM
)
buffA
);
result
=
SendMessageA
(
hwndRichEdit
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
buffA
);
ok
(
!
strcmp
(
buffA
,
"ef
\x8e\xf0
g"
),
"EM_GETSELTEXT return incorrect string
\n
"
);
result
=
SendMessageA
(
hwndRichEdit
,
EM_GETSEL
,
(
WPARAM
)
&
sel_start
,
(
LPARAM
)
&
sel_end
);
ok
(
sel_start
==
4
,
"Selection start incorrectly: %d expected 4
\n
"
,
sel_start
);
...
...
dlls/riched20/tests/richole.c
View file @
baa41970
...
...
@@ -4068,7 +4068,7 @@ static void subtest_InsertObject(struct reolecb_obj *callback)
expected_stringA
=
"abc d efg"
;
memset
(
bufferA
,
0
,
sizeof
(
bufferA
));
SendMessageA
(
hwnd
,
EM_SETSEL
,
0
,
-
1
);
result
=
SendMessageA
(
hwnd
,
EM_GETSELTEXT
,
(
WPARAM
)
sizeof
(
bufferA
)
,
(
LPARAM
)
bufferA
);
result
=
SendMessageA
(
hwnd
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
bufferA
);
ok
(
result
==
strlen
(
expected_stringA
),
"Got wrong length: %ld.
\n
"
,
result
);
ok
(
!
strcmp
(
bufferA
,
expected_stringA
),
"Got wrong content: %s.
\n
"
,
bufferA
);
...
...
@@ -4151,7 +4151,7 @@ static void subtest_InsertObject(struct reolecb_obj *callback)
expected_stringA
=
"abc d efg"
;
memset
(
bufferA
,
0
,
sizeof
(
bufferA
));
SendMessageA
(
hwnd
,
EM_SETSEL
,
0
,
-
1
);
result
=
SendMessageA
(
hwnd
,
EM_GETSELTEXT
,
(
WPARAM
)
sizeof
(
bufferA
)
,
(
LPARAM
)
bufferA
);
result
=
SendMessageA
(
hwnd
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
bufferA
);
ok
(
result
==
strlen
(
expected_stringA
),
"Got wrong length: %ld.
\n
"
,
result
);
ok
(
!
strcmp
(
bufferA
,
expected_stringA
),
"Got wrong content: %s.
\n
"
,
bufferA
);
...
...
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