[Bug 3066] New: RTF writer of richedit20: Only 8KiB are saved

Wine Bugs wine-bugs at winehq.org
Sat Jun 18 03:33:55 CDT 2005


http://bugs.winehq.org/show_bug.cgi?id=3066

           Summary: RTF writer of richedit20: Only 8KiB are saved
           Product: Wine
           Version: CVS
          Platform: Other
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-gui
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: burnus at gmx.de


I have the problem with exporting RTF files using richedit: They are all cropped
at 8 KiB (= 8192 bytes) - at least using the program Diamond2 (even if only a
final '}' is missing).

Grepping through the sources I see:
   dlls/riched20/editstr.h:#define STREAMOUT_FONTTBL_SIZE 8192
and in the writer.c file:
 static BOOL
 ME_StreamOutRTFText(ME_TextEditor *editor, WCHAR *text, LONG nChars)
 {
    char buffer[STREAMOUT_BUFFER_SIZE];
[...]
   if (pos >= STREAMOUT_BUFFER_SIZE - 11) {
     if (!ME_StreamOutMove(editor, buffer, pos))
       return FALSE;

Seemingly, ME_StreamOutMove fails to flush the buffer, but why?
Anyone having an insight or an idea how to test this?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list