Commit 9de14a1c authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

- 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.
parent 8bed3a7b
......@@ -124,13 +124,19 @@ int _RTFGetChar(RTF_Info *info)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment