mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
Emulator: Use existing queried library name in load check
We already asked the region about what its library name is, and we also use that value when maybe constructing a path, so let's make the check use that as well.
This commit is contained in:
parent
fc6f265155
commit
6c6381408f
Notes:
sideshowbarker
2024-07-18 01:20:02 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/6c6381408fb Pull-request: https://github.com/SerenityOS/serenity/pull/10709
|
@ -395,7 +395,7 @@ MmapRegion const* Emulator::load_library_from_address(FlatPtr address)
|
|||
return {};
|
||||
|
||||
String lib_path = lib_name;
|
||||
if (region->name().contains(".so"))
|
||||
if (lib_name.ends_with(".so"))
|
||||
lib_path = String::formatted("/usr/lib/{}", lib_path);
|
||||
|
||||
if (!m_dynamic_library_cache.contains(lib_path)) {
|
||||
|
|
Loading…
Reference in a new issue