diff options
Diffstat (limited to 'winsup/cygwin/dlfcn.cc')
-rw-r--r-- | winsup/cygwin/dlfcn.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc index cf74d4696..dc6fec321 100644 --- a/winsup/cygwin/dlfcn.cc +++ b/winsup/cygwin/dlfcn.cc @@ -183,13 +183,12 @@ dlopen (const char *name, int) if (!name) { // handle for the current module - ret = (void *) GetModuleHandle (0); + ret = (void *) GetModuleHandle (NULL); } else { // handle for the named library const char *fullpath = get_full_path_of_dll (name); - DllList::the().currentDlOpenedLib (fullpath); ret = (void *) LoadLibrary (fullpath); } |