Michael Stefaniuc : riched20: Avoid using long.

Alexandre Julliard julliard at winehq.org
Mon May 17 09:39:30 CDT 2010


Module: wine
Branch: master
Commit: cf13e8a3900e3831afe08c7cedf3bd23fdd28aeb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf13e8a3900e3831afe08c7cedf3bd23fdd28aeb

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon May 17 01:11:23 2010 +0200

riched20: Avoid using long.

---

 dlls/riched20/editor.c       |    2 +-
 dlls/riched20/rtf.h          |    2 +-
 dlls/riched20/tests/editor.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 591f9ff..fcbab6e 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -289,7 +289,7 @@ static LRESULT ME_StreamInText(ME_TextEditor *editor, DWORD dwFormat, ME_InStrea
   TRACE("%08x %p\n", dwFormat, stream);
   
   do {
-    long nWideChars = 0;
+    LONG nWideChars = 0;
 
     if (!stream->dwSize)
     {
diff --git a/dlls/riched20/rtf.h b/dlls/riched20/rtf.h
index d8ac323..4bff331 100644
--- a/dlls/riched20/rtf.h
+++ b/dlls/riched20/rtf.h
@@ -1122,7 +1122,7 @@ struct _RTF_Info {
     char *rtfTextBuf;
     int	rtfTextLen;
 
-    long rtfLineNum;
+    int rtfLineNum;
     int	rtfLinePos;
 
 
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index ee26683..685eead 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -4318,7 +4318,7 @@ const struct exsetsel_s exsetsel_tests[] = {
 
 static void check_EM_EXSETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id) {
     CHARRANGE cr;
-    long result;
+    LRESULT result;
     int start, end;
 
     cr.cpMin = setsel->min;




More information about the wine-cvs mailing list