Francois Gouget : riched20:
Tweak a buffer declaration to fix the compilation with Visual C++.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 2 05:40:45 CDT 2006
Module: wine
Branch: master
Commit: 9197f5c3dfbcdf0114d4b795da2be768ceddb35a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9197f5c3dfbcdf0114d4b795da2be768ceddb35a
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Sep 29 13:06:22 2006 +0200
riched20: Tweak a buffer declaration to fix the compilation with Visual C++.
---
dlls/riched20/tests/editor.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 5e34b92..5dc136e 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -976,8 +976,7 @@ #define MAX_BUF_LEN 1024
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);
More information about the wine-cvs
mailing list