Fixed getting original SIGSEGV handler on macOS in SourceHook's ModuleInMemory.

This commit is contained in:
Scott Ehlert 2017-09-15 07:14:44 -05:00
parent 2f48aaef55
commit 71e6db5400

View File

@ -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);