* debug.cc (close_handle): Change debug output format slightly.
* dlfcn.cc (dlclose): Don't close handle returned from GetModuleHandle(NULL). * fhandler.h (fhandler_pipe::create): Remove obsolete argument. (fhandler_pipe::create): Ditto. * fhandler.cc (fhandler_pipe::create): Ditto. (fhandler_pipe::create): Ditto.
This commit is contained in:
@@ -145,12 +145,10 @@ int
|
||||
dlclose (void *handle)
|
||||
{
|
||||
int ret = -1;
|
||||
void *temphandle = (void *) GetModuleHandle (NULL);
|
||||
if (temphandle == handle || FreeLibrary ((HMODULE) handle))
|
||||
if (handle == GetModuleHandle (NULL) || FreeLibrary ((HMODULE) handle))
|
||||
ret = 0;
|
||||
if (ret)
|
||||
set_dl_error ("dlclose");
|
||||
CloseHandle ((HMODULE) temphandle);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user