mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-07 03:17:22 -04:00
Fix string copy in LocateDllInBundle
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user