fix windows support bug

This commit is contained in:
Axel Kohlmeyer
2022-12-19 20:04:27 -05:00
parent 078468a94f
commit e9b4d2c55d

View File

@ -199,7 +199,7 @@ int liblammpsplugin_release(liblammpsplugin_t *lmp)
if (lmp->handle == NULL) return 2;
#ifdef _WIN32
FreeLibrary((HINSTANCE) handle);
FreeLibrary((HINSTANCE) lmp->handle);
#else
dlclose(lmp->handle);
#endif