diff options
author | Christopher Faylor <me@cgf.cx> | 2001-02-15 02:45:56 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-02-15 02:45:56 +0300 |
commit | ee2c7251d0069de6fe5e20f9295ddc0cfd41fb5c (patch) | |
tree | a8444718cfda028aaa405a439ceaf4096e1f80e3 /winsup/cygwin | |
parent | 8f8e7442bb5afe429f6bdf1316ea7527b6a62e54 (diff) |
* dlfcn.cc (dlopen): Do not call LoadLibrary with a NULL pointer, when the
library is not found
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/dlfcn.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 25ab74b5f..05a9c5c91 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 14 14:54:40 2001 Christophe Iasci <chrisiasci@aol.com> + + * dlfcn.cc (dlopen): Do not call LoadLibrary with a NULL pointer, when + the library is not found + 2001-02-14 Egor Duda <deo@logos-m.ru> * fhandler_console.cc (fhandler_console::char_command): Ignore unknown diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc index a85351323..73c44f12d 100644 --- a/winsup/cygwin/dlfcn.cc +++ b/winsup/cygwin/dlfcn.cc @@ -177,7 +177,8 @@ dlopen (const char *name, int) { /* handle for the named library */ const char *fullpath = get_full_path_of_dll (name); - ret = (void *) LoadLibrary (fullpath); + if (fullpath) + ret = (void *) LoadLibrary (fullpath); } if (!ret) |