diff options
| author | 2022-06-26 17:01:54 +0100 | |
|---|---|---|
| committer | 2022-06-26 17:01:54 +0100 | |
| commit | dc3df034062a3faccb9ed0777e99dde89776d52e (patch) | |
| tree | 3a7c6adb83752578758791f4843b10695e0aac4f /src/modules.cpp | |
| parent | Make clientprotocol{msg,event} and numericbuilder non-default headers. (diff) | |
Fix various bugs relating to platform-native module extensions.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 2 |
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); } |
