]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (sys_wll_open): Revert commit mistake.
authorPeter Ekberg <peda@lysator.liu.se>
Tue, 2 Aug 2005 06:20:43 +0000 (06:20 +0000)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 2 Aug 2005 06:20:43 +0000 (06:20 +0000)
ChangeLog
libltdl/ltdl.c

index 110782085062258ca20762f70c233515566fb471..e61309b5048e1b7e94c1d75b6a0bc39b074f7658 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-08-02  Peter Ekberg  <peda@lysator.liu.se>
 
+       * libltdl/ltdl.c (sys_wll_open): Revert commit mistake.
+
        * ltmain.in (link mode) <lib>: Make sure skipped_export is
        set to colon if _some_ cmd of export_symbols_cmds is too long.
 
index 378b3e02d86df317d272f23d4bd1ffbcff436b11..4b99e742caf7f2c98682f0a13e86578265cd656f 100644 (file)
@@ -1348,26 +1348,15 @@ sys_wll_open (loader_data, filename)
   if (!searchname)
     return 0;
 
-  {
-    /* Silence dialog from LoadLibrary on some failures.
-       No way to get the error mode, but to set it,
-       so set it twice to preserve any previous flags. */
-    UINT errormode = SetErrorMode (SEM_FAILCRITICALERRORS);
-    SetErrorMode (errormode | SEM_FAILCRITICALERRORS);
-
 #if __CYGWIN__
-    {
-      char wpath[MAX_PATH];
-      cygwin_conv_to_full_win32_path (searchname, wpath);
-      module = LoadLibrary (wpath);
-    }
+  {
+    char wpath[MAX_PATH];
+    cygwin_conv_to_full_win32_path(searchname, wpath);
+    module = LoadLibrary(wpath);
+  }
 #else
-    module = LoadLibrary (searchname);
+  module = LoadLibrary (searchname);
 #endif
-
-    /* Restore the error mode. */
-    SetErrorMode (errormode);
-  }
   LT_DLFREE (searchname);
 
   /* libltdl expects this function to fail if it is unable