]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 17 Sep 2013 14:22:48 +0000 (14:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 17 Sep 2013 14:22:48 +0000 (14:22 +0000)
MagickCore/nt-base.c

index 9cd5bff4103973921890414c3ff757567ff787b5..9beded222f0ba7194921ee2241395e728ef5bc72 100644 (file)
@@ -1577,7 +1577,8 @@ MagickPrivate void *NTOpenLibrary(const char *filename)
   void
     *handle;
 
-  mode=SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
+  mode=GetErrorMode();
+  mode=SetErrorMode(mode | SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
   handle=(void *) LoadLibraryEx(filename,NULL,LOAD_WITH_ALTERED_SEARCH_PATH);
   if ((handle != (void *) NULL) || (GetSearchPath() == (char *) NULL))
     {