aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index c16ddf5ef..9e89b027e 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -671,7 +671,7 @@ std::string ModuleManager::ShrinkModName(const std::string& modname)
{
const static size_t extlen = strlen(DLL_EXTENSION);
size_t startpos = modname.compare(0, 2, "m_", 2) ? 0 : 2;
- size_t endpos = modname.length() < extlen || modname.compare(modname.length() - extlen, extlen, ".so", extlen) ? 0 : extlen;
+ size_t endpos = modname.length() < extlen || modname.compare(modname.length() - extlen, extlen, DLL_EXTENSION, extlen) ? 0 : extlen;
return modname.substr(startpos, modname.length() - endpos - startpos);
}