From 603a2574e937171aa5e737bd5e7b4a07f74e88ee Mon Sep 17 00:00:00 2001 From: s1lentq Date: Tue, 16 Jan 2024 01:20:13 +0700 Subject: [PATCH] Fixed wrong result condition --- metamod/src/sys_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metamod/src/sys_module.cpp b/metamod/src/sys_module.cpp index 9d97540..d487306 100644 --- a/metamod/src/sys_module.cpp +++ b/metamod/src/sys_module.cpp @@ -194,7 +194,7 @@ bool CSysModule::unload() bool ret = true; if (m_free) { - ret = dlclose(m_handle) != 0; + ret = dlclose(m_handle) == 0; } m_handle = INVALID_HANDLE;