Skip to content

Commit

Permalink
More fixes for windows dynloader compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed May 15, 2024
1 parent 0b4d0f2 commit d1d2963
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ncrystal_core/src/NCDynLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ NC::DynLoader::DynLoader( const std::string& filename,
const char* errMsg = "NCrystal dynamic loading is disabled";
#else
# ifdef NCRYSTAL_WIN_LOADLIB
const char* errMsg = GetLastError();
//const char* errMsg = GetLastError();
const char* errMsg = "";
# else
const char* errMsg = dlerror();
# endif
Expand All @@ -147,7 +148,7 @@ NC::DynLoader::~DynLoader()
NCRYSTAL_LOCK_GUARD( getMutex() );
# ifdef NCRYSTAL_WIN_LOADLIB
if (!FreeLibrary((HINSTANCE)m_handle))
errMsg = GetLastError();
errMsg = "";
# else
dlerror();//clear
if ( dlclose(m_handle)!=0 )
Expand Down

0 comments on commit d1d2963

Please sign in to comment.