Fix string copy in LocateDllInBundle

This commit is contained in:
PJB3005
2026-05-31 16:36:13 +02:00
parent bd09eea0f3
commit 66aca3b69d
+1 -1
View File
@@ -63,7 +63,7 @@ static std::string_view getFileNameWithoutExtension(const std::string_view fileN
static DllLocateResult LocateDllInBundle(ModBundle& bundle) {
std::string dllEntry, dllFallback;
for (const auto name : bundle.getFileNames()) {
for (const auto& name : bundle.getFileNames()) {
if (!name.ends_with(".dll"sv) && !name.ends_with(".dylib"sv) && !name.ends_with(".so"sv)) {
continue;
}