[Bug 14827] Autocad 2005 : Multiline text edit crashes application

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Apr 23 21:06:08 CDT 2009


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





--- Comment #18 from Dylan Smith <dylan.ah.smith at gmail.com>  2009-04-23 21:06:03 ---
Sorry, the previous patch didn't end up doing what I was trying to do, since I
needed the length of the string to be specified.  Try the following instead.

diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c
index d1d9990..b6c3ed6 100644
--- a/dlls/riched20/writer.c
+++ b/dlls/riched20/writer.c
@@ -904,7 +904,7 @@ ME_StreamOutRTF(ME_TextEditor *editor, ME_OutStream
*pStream
       break;
     p = ME_FindItemFwd(p, diRunOrParagraphOrEnd);
   }
-  if (!ME_StreamOutPrint(pStream, "}"))
+  if (!ME_StreamOutMove(pStream, "}\0", 2))
     return FALSE;
   return TRUE;
 }


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list