mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Fixed getting original SIGSEGV handler on macOS in SourceHook's ModuleInMemory.
This commit is contained in:
parent
2f48aaef55
commit
71e6db5400
@ -351,7 +351,7 @@ namespace SourceHook
|
||||
|
||||
if (sigaction(SIGBUS, &sa, &osa) == -1)
|
||||
return false;
|
||||
if (sigaction(SIGSEGV, &sa, &osa) == -1)
|
||||
if (sigaction(SIGSEGV, &sa, &osa2) == -1)
|
||||
return false;
|
||||
|
||||
volatile const char *p = reinterpret_cast<const char *>(addr);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user