dlls/richedit/reader.c

Ge van Geldorp gvg at reactos.com
Fri Apr 16 06:56:41 CDT 2004


This fixes the AbiWord installer not displaying the license text

Changelog:
  Ge van Geldorp <gvg at reactos.com>
  Work around problem in NSIS installers which can't handle 1 char
  at a time reading of RTF text.

Index: dlls/richedit/reader.c
===================================================================
RCS file: /home/wine/wine/dlls/richedit/reader.c,v
retrieving revision 1.13
diff -u -r1.13 reader.c
--- dlls/richedit/reader.c	30 Jan 2004 22:56:33 -0000	1.13
+++ dlls/richedit/reader.c	16 Apr 2004 11:53:19 -0000
@@ -126,11 +126,17 @@
     {
         char buff[10];
         long pcb;
-        info->editstream.pfnCallback(info->editstream.dwCookie, buff, 1, &pcb);
+        info->editstream.pfnCallback(info->editstream.dwCookie, buff, sizeof(buff), &pcb);
         if(pcb == 0)
            return EOF;
         else
-           CHARLIST_Enqueue(&info->inputCharList, buff[0]);
+        {
+           int i;
+           for (i = 0; i < pcb; i++)
+           {
+               CHARLIST_Enqueue(&info->inputCharList, buff[i]);
+           }
+        }
     }
     myChar = CHARLIST_Dequeue(&info->inputCharList);
     return (int) myChar;



More information about the wine-patches mailing list