From e9b4d2c55d78cc780ba0ae059b51d7c922cb3179 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 19 Dec 2022 20:04:27 -0500 Subject: [PATCH] fix windows support bug --- examples/COUPLE/plugin/liblammpsplugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/COUPLE/plugin/liblammpsplugin.c b/examples/COUPLE/plugin/liblammpsplugin.c index 996a27524f..0b7eda7537 100644 --- a/examples/COUPLE/plugin/liblammpsplugin.c +++ b/examples/COUPLE/plugin/liblammpsplugin.c @@ -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