mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-20 21:09:37 +02:00
[common/host_memory] Remove throw on benign path (#4359)
The caller of GetFuncAddress already handles the case gracefully. Fixes crashes when the symbol aint present Signed-off-by: lizzie <lizzie@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4359 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: Maufeat <sahyno1996@gmail.com>
This commit is contained in:
parent
dcbcdf16ad
commit
c5f6f1ca5e
1 changed files with 0 additions and 1 deletions
|
|
@ -117,7 +117,6 @@ template <typename T>
|
||||||
static void GetFuncAddress(Common::DynamicLibrary& dll, const char* name, T& pfn) {
|
static void GetFuncAddress(Common::DynamicLibrary& dll, const char* name, T& pfn) {
|
||||||
if (!dll.GetSymbol(name, &pfn)) {
|
if (!dll.GetSymbol(name, &pfn)) {
|
||||||
LOG_CRITICAL(HW_Memory, "Failed to load {}", name);
|
LOG_CRITICAL(HW_Memory, "Failed to load {}", name);
|
||||||
throw std::bad_alloc{};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue