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
5ce384e1
Commit
5ce384e1
authored
Nov 10, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Simplify the check for an empty string (PVS-Studio).
parent
51302e01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
editor.c
dlls/riched20/tests/editor.c
+4
-7
No files found.
dlls/riched20/tests/editor.c
View file @
5ce384e1
...
@@ -3736,9 +3736,8 @@ static void test_EM_SETTEXTEX(void)
...
@@ -3736,9 +3736,8 @@ static void test_EM_SETTEXTEX(void)
ok
(
result
==
1
,
ok
(
result
==
1
,
"EM_SETTEXTEX returned %d, instead of 1
\n
"
,
result
);
"EM_SETTEXTEX returned %d, instead of 1
\n
"
,
result
);
ok
(
lstrlenW
(
buf
)
==
0
,
ok
(
!
buf
[
0
],
"EM_SETTEXTEX with NULL lParam should clear rich edit.
\n
"
);
"EM_SETTEXTEX with NULL lParam should clear rich edit.
\n
"
);
/* put some text back: !ST_SELECTION && Unicode && !\rtf */
/* put some text back: !ST_SELECTION && Unicode && !\rtf */
setText
.
flags
=
0
;
setText
.
flags
=
0
;
SendMessageA
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
TestItem1
);
SendMessageA
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
TestItem1
);
...
@@ -5225,8 +5224,7 @@ static void test_EM_STREAMIN(void)
...
@@ -5225,8 +5224,7 @@ static void test_EM_STREAMIN(void)
result
=
SendMessageA
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
result
=
SendMessageA
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
0
,
ok
(
result
==
0
,
"EM_STREAMIN: Test 2 returned %ld, expected 0
\n
"
,
result
);
"EM_STREAMIN: Test 2 returned %ld, expected 0
\n
"
,
result
);
ok
(
strlen
(
buffer
)
==
0
,
ok
(
!
buffer
[
0
],
"EM_STREAMIN: Test 2 set wrong text: Result: %s
\n
"
,
buffer
);
"EM_STREAMIN: Test 2 set wrong text: Result: %s
\n
"
,
buffer
);
ok
(
es
.
dwError
==
-
16
,
"EM_STREAMIN: Test 2 set error %d, expected %d
\n
"
,
es
.
dwError
,
-
16
);
ok
(
es
.
dwError
==
-
16
,
"EM_STREAMIN: Test 2 set error %d, expected %d
\n
"
,
es
.
dwError
,
-
16
);
es
.
dwCookie
=
(
DWORD_PTR
)
&
streamText3
;
es
.
dwCookie
=
(
DWORD_PTR
)
&
streamText3
;
...
@@ -5237,8 +5235,7 @@ static void test_EM_STREAMIN(void)
...
@@ -5237,8 +5235,7 @@ static void test_EM_STREAMIN(void)
result
=
SendMessageA
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
result
=
SendMessageA
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
0
,
ok
(
result
==
0
,
"EM_STREAMIN: Test 3 returned %ld, expected 0
\n
"
,
result
);
"EM_STREAMIN: Test 3 returned %ld, expected 0
\n
"
,
result
);
ok
(
strlen
(
buffer
)
==
0
,
ok
(
!
buffer
[
0
],
"EM_STREAMIN: Test 3 set wrong text: Result: %s
\n
"
,
buffer
);
"EM_STREAMIN: Test 3 set wrong text: Result: %s
\n
"
,
buffer
);
ok
(
es
.
dwError
==
-
16
,
"EM_STREAMIN: Test 3 set error %d, expected %d
\n
"
,
es
.
dwError
,
-
16
);
ok
(
es
.
dwError
==
-
16
,
"EM_STREAMIN: Test 3 set error %d, expected %d
\n
"
,
es
.
dwError
,
-
16
);
es
.
dwCookie
=
(
DWORD_PTR
)
&
streamTextUTF8BOM
;
es
.
dwCookie
=
(
DWORD_PTR
)
&
streamTextUTF8BOM
;
...
...
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