bug fix for 986
This commit is contained in:
parent
997ee7b8d6
commit
c5be64081a
|
@ -121,7 +121,7 @@ cmLibHandle cmDynamicLoader::OpenLibrary(const char* libname )
|
|||
|
||||
int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
|
||||
{
|
||||
return shl_unload(lib);
|
||||
return !shl_unload(lib);
|
||||
}
|
||||
|
||||
cmDynamicLoaderFunction
|
||||
|
@ -183,7 +183,7 @@ int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
|
|||
(void)lib;
|
||||
|
||||
NSUnLinkModule(lib, FALSE);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
cmDynamicLoaderFunction
|
||||
|
@ -309,7 +309,7 @@ cmLibHandle cmDynamicLoader::OpenLibrary(const char* libname )
|
|||
|
||||
int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
|
||||
{
|
||||
return (int)dlclose(lib);
|
||||
return !(int)dlclose(lib);
|
||||
}
|
||||
|
||||
cmDynamicLoaderFunction
|
||||
|
|
Loading…
Reference in New Issue