mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-07 10:28:30 +00:00
One last oops. I really need to install Linux again SOON :(
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4089
This commit is contained in:
parent
b45d02fd59
commit
542dfc5eec
@ -478,9 +478,9 @@ namespace SourceHook
|
||||
static bool CSourceHookImpl::IsBadReadPtr(const void *ptr, size_t len)
|
||||
{
|
||||
void(*prevHandler)(int sig);
|
||||
g_BadReadCalled = true;
|
||||
m_BadReadCalled = true;
|
||||
|
||||
if (setjmp(g_BadReadJmpBuffer))
|
||||
if (setjmp(m_BadReadJmpBuf))
|
||||
return true;
|
||||
|
||||
prevHandler = signal(SIGSEGV, BadReadHandler);
|
||||
@ -491,7 +491,7 @@ namespace SourceHook
|
||||
for (size_t i = 0; i < len; i++)
|
||||
dummy = p[i];
|
||||
|
||||
g_BadReadCalled = false;
|
||||
m_BadReadCalled = false;
|
||||
|
||||
signal(SIGSEGV, prevHandler);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user