Sync with Wine-20040213

svn path=/trunk/; revision=8238
This commit is contained in:
Gé van Geldorp 2004-02-17 23:09:05 +00:00
parent 503a4764b1
commit b7ee835601

View file

@ -0,0 +1,27 @@
Index: reader.c
===================================================================
RCS file: /home/wine/wine/dlls/richedit/reader.c,v
retrieving revision 1.13
diff -u -r1.13 reader.c
--- reader.c 30 Jan 2004 22:56:33 -0000 1.13
+++ reader.c 17 Feb 2004 23:16:04 -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;