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