[Bug 28709] HelpNDoc crashes with builtin gdiplus

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Oct 13 17:07:54 CDT 2011


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

--- Comment #6 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk> 2011-10-13 17:07:54 CDT ---
(In reply to comment #5)
> Most likely, the app is looking for a specific one, which we should implement.
> It would be nice to know which one.

See below. This is the minimal patch to get the app starting. Adding the flag
to JPEG or GIF alone made the app still crash; needed to add the flag to both
to work around the crash

diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 0e3848f..f73b5cb 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -3277,7 +3277,7 @@ static const struct image_codec codecs[NUM_CODECS] = {
             /* FormatDescription */  jpeg_format,
             /* FilenameExtension */  jpeg_extension,
             /* MimeType */           jpeg_mimetype,
-            /* Flags */              ImageCodecFlagsDecoder |
ImageCodecFlagsSupportBitmap | ImageCodecFlagsBuiltin,
+            /* Flags */              ImageCodecFlagsDecoder |
ImageCodecFlagsSupportBitmap | ImageCodecFlagsBuiltin | ImageCodecFlagsEncoder,
             /* Version */            1,
             /* SigCount */           1,
             /* SigSize */            2,
@@ -3296,7 +3296,7 @@ static const struct image_codec codecs[NUM_CODECS] = {
             /* FormatDescription */  gif_format,
             /* FilenameExtension */  gif_extension,
             /* MimeType */           gif_mimetype,
-            /* Flags */              ImageCodecFlagsDecoder |
ImageCodecFlagsSupportBitmap | ImageCodecFlagsBuiltin,
+            /* Flags */              ImageCodecFlagsDecoder |
ImageCodecFlagsSupportBitmap | ImageCodecFlagsBuiltin | ImageCodecFlagsEncoder,
             /* Version */            1,
             /* SigCount */           1,
             /* SigSize */            4,

-- 
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