diff --git a/src/core/module.cpp b/src/core/module.cpp index 440585d1a..28380ad53 100644 --- a/src/core/module.cpp +++ b/src/core/module.cpp @@ -83,7 +83,7 @@ static std::string StringToNid(std::string_view symbol) { } Module::Module(Core::MemoryManager* memory_, const std::filesystem::path& file_, u32& max_tls_index) - : memory{memory_}, file{file_}, name{file.stem().string()} { + : memory{memory_}, file{file_}, name{file.filename().string()} { elf.Open(file); if (elf.IsElfFile()) { LoadModuleToMemory(max_tls_index);