Another VC6/Windows patch

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
MarkFreeman

Another VC6/Windows patch

Post by MarkFreeman »

Hi,

I was still seeing a crash after rebuilding with the patched code from svn. Added the following to module.c and it works now:

OpenModule in module.c line 1128 replace:

(void) LogMagickEvent(ModuleEvent,GetMagickModule(),
"Opening module at path \"%s\"",path);
handle=(ModuleHandle) lt_dlopen(path);

with


#if defined(__WINDOWS__)
strcat(path,"\\");
strcat(path,filename);
#endif
(void) LogMagickEvent(ModuleEvent,GetMagickModule(),
"Opening module at path \"%s\"",path);
handle=(ModuleHandle) lt_dlopen(path);


cheers,

Mark.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Another VC6/Windows patch

Post by magick »

Thanks for the patch. We'll get into the Subversion trunk by tomorrow.
Post Reply