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
92d2ebe6
Commit
92d2ebe6
authored
Nov 08, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Avoid strlen in traces.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f45fa05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
edit.c
dlls/user32/tests/edit.c
+3
-3
No files found.
dlls/user32/tests/edit.c
View file @
92d2ebe6
...
...
@@ -2877,7 +2877,7 @@ static void test_paste(void)
SendMessageA
(
hEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
""
);
r
=
SendMessageA
(
hEdit
,
WM_PASTE
,
0
,
0
);
len
=
SendMessageA
(
hEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
ok
(
strlen
(
str
)
==
len
,
"
expected %d, got %d
\n
"
,
strlen
(
str
)
,
len
);
ok
(
strlen
(
str
)
==
len
,
"
got %d
\n
"
,
len
);
/* Prepare clipboard data with multiline text */
hmem
=
GlobalAlloc
(
GMEM_MOVEABLE
,
255
);
...
...
@@ -2900,13 +2900,13 @@ static void test_paste(void)
SendMessageA
(
hEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
""
);
r
=
SendMessageA
(
hEdit
,
WM_PASTE
,
0
,
0
);
len
=
SendMessageA
(
hEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
ok
(
strlen
(
"first line"
)
==
len
,
"
expected %d, got %d
\n
"
,
strlen
(
"first line"
)
,
len
);
ok
(
strlen
(
"first line"
)
==
len
,
"
got %d
\n
"
,
len
);
/* Paste multiline text in multiline edit */
SendMessageA
(
hMultilineEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
""
);
r
=
SendMessageA
(
hMultilineEdit
,
WM_PASTE
,
0
,
0
);
len
=
SendMessageA
(
hMultilineEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
ok
(
strlen
(
str2
)
==
len
,
"
expected %d, got %d
\n
"
,
strlen
(
str2
)
,
len
);
ok
(
strlen
(
str2
)
==
len
,
"
got %d
\n
"
,
len
);
/* Cleanup */
DestroyWindow
(
hEdit
);
...
...
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