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
9197f5c3
Commit
9197f5c3
authored
Sep 29, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Tweak a buffer declaration to fix the compilation with Visual C++.
parent
1011bc47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
editor.c
dlls/riched20/tests/editor.c
+3
-4
No files found.
dlls/riched20/tests/editor.c
View file @
9197f5c3
...
...
@@ -976,8 +976,7 @@ static void test_EM_SETTEXTEX()
static
void
test_EM_EXLIMITTEXT
(
void
)
{
int
i
,
selBegin
,
selEnd
,
len1
,
len2
;
int
BUFSIZE
=
1024
;
char
text
[
BUFSIZE
+
1
];
char
text
[
1024
+
1
];
int
textlimit
=
0
;
/* multiple of 100 */
HWND
hwndRichEdit
=
new_richedit
(
NULL
);
...
...
@@ -1001,9 +1000,9 @@ static void test_EM_EXLIMITTEXT(void)
/* default for WParam = 0 */
ok
(
65536
==
i
,
"EM_EXLIMITTEXT: expected: %d, actual: %d
\n
"
,
65536
,
i
);
textlimit
=
BUFSIZE
;
textlimit
=
sizeof
(
text
)
-
1
;
memset
(
text
,
'W'
,
textlimit
);
text
[
BUFSIZE
]
=
0
;
text
[
sizeof
(
text
)
-
1
]
=
0
;
SendMessage
(
hwndRichEdit
,
EM_EXLIMITTEXT
,
0
,
textlimit
);
/* maxed out text */
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text
);
...
...
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