dlls/richedit/reader.c
Ge van Geldorp
gvg at reactos.com
Fri Apr 16 12:33:31 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.
- Increase buffer to 4096 bytes for better compatibility
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 17:30:41 -0000
@@ -124,13 +124,19 @@
if(CHARLIST_GetNbItems(&info->inputCharList) == 0)
{
- char buff[10];
+ char buff[4096];
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