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
f0c4fdba
Commit
f0c4fdba
authored
Dec 14, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Avoid using size_t in traces.
parent
97693974
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
editor.c
dlls/riched20/tests/editor.c
+8
-8
No files found.
dlls/riched20/tests/editor.c
View file @
f0c4fdba
...
@@ -664,8 +664,8 @@ static void test_WM_GETTEXT(void)
...
@@ -664,8 +664,8 @@ static void test_WM_GETTEXT(void)
/* Baseline test with normal-sized buffer */
/* Baseline test with normal-sized buffer */
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text
);
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
strlen
(
buffer
),
ok
(
result
==
l
strlen
(
buffer
),
"WM_GETTEXT returned %d, expected %d
\n
"
,
result
,
strlen
(
buffer
));
"WM_GETTEXT returned %d, expected %d
\n
"
,
result
,
l
strlen
(
buffer
));
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
result
=
strcmp
(
buffer
,
text
);
result
=
strcmp
(
buffer
,
text
);
ok
(
result
==
0
,
ok
(
result
==
0
,
...
@@ -673,9 +673,9 @@ static void test_WM_GETTEXT(void)
...
@@ -673,9 +673,9 @@ static void test_WM_GETTEXT(void)
/* Test for returned value of WM_GETTEXTLENGTH */
/* Test for returned value of WM_GETTEXTLENGTH */
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
ok
(
result
==
strlen
(
text
),
ok
(
result
==
l
strlen
(
text
),
"WM_GETTEXTLENGTH reports incorrect length %d, expected %d
\n
"
,
"WM_GETTEXTLENGTH reports incorrect length %d, expected %d
\n
"
,
result
,
strlen
(
text
));
result
,
l
strlen
(
text
));
/* Test for behavior in overflow case */
/* Test for behavior in overflow case */
memset
(
buffer
,
0
,
1024
);
memset
(
buffer
,
0
,
1024
);
...
@@ -689,17 +689,17 @@ static void test_WM_GETTEXT(void)
...
@@ -689,17 +689,17 @@ static void test_WM_GETTEXT(void)
/* Baseline test with normal-sized buffer and carriage return */
/* Baseline test with normal-sized buffer and carriage return */
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text2
);
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text2
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
strlen
(
buffer
),
ok
(
result
==
l
strlen
(
buffer
),
"WM_GETTEXT returned %d, expected %d
\n
"
,
result
,
strlen
(
buffer
));
"WM_GETTEXT returned %d, expected %d
\n
"
,
result
,
l
strlen
(
buffer
));
result
=
strcmp
(
buffer
,
text2_after
);
result
=
strcmp
(
buffer
,
text2_after
);
ok
(
result
==
0
,
ok
(
result
==
0
,
"WM_GETTEXT: settext and gettext differ. strcmp: %d
\n
"
,
result
);
"WM_GETTEXT: settext and gettext differ. strcmp: %d
\n
"
,
result
);
/* Test for returned value of WM_GETTEXTLENGTH */
/* Test for returned value of WM_GETTEXTLENGTH */
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXTLENGTH
,
0
,
0
);
ok
(
result
==
strlen
(
text2_after
),
ok
(
result
==
l
strlen
(
text2_after
),
"WM_GETTEXTLENGTH reports incorrect length %d, expected %d
\n
"
,
"WM_GETTEXTLENGTH reports incorrect length %d, expected %d
\n
"
,
result
,
strlen
(
text2_after
));
result
,
l
strlen
(
text2_after
));
/* Test for behavior of CRLF conversion in case of overflow */
/* Test for behavior of CRLF conversion in case of overflow */
memset
(
buffer
,
0
,
1024
);
memset
(
buffer
,
0
,
1024
);
...
...
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