Another VC6/Windows patch
Posted: 2009-01-21T07:40:47-07:00
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.
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.