diff options
| author | John M. Harris, Jr <johnmh@johnmh.me> | 2024-06-07 09:31:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 18:31:27 +0200 |
| commit | 429cff340de68b3bfa4790062734c23fcbf26088 (patch) | |
| tree | 04bc57a9eaabe0b80ec5cfcf7266e9e2a7b4417e /src/managers/HookSystemManager.cpp | |
| parent | af5f24929d83cc7a97a77de516bc665e38acfa12 (diff) | |
hookSystem: Make needsDeadCleanup volatile (#6356)
The value of needsDeadCleanup would be clobbered after longjmp,
having an undefined value.
Diffstat (limited to 'src/managers/HookSystemManager.cpp')
| -rw-r--r-- | src/managers/HookSystemManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/HookSystemManager.cpp b/src/managers/HookSystemManager.cpp index a1920863..208c79ae 100644 --- a/src/managers/HookSystemManager.cpp +++ b/src/managers/HookSystemManager.cpp @@ -28,7 +28,7 @@ void CHookSystemManager::emit(std::vector<SCallbackFNPtr>* const callbacks, SCal return; std::vector<HANDLE> faultyHandles; - bool needsDeadCleanup = false; + volatile bool needsDeadCleanup = false; for (auto& cb : *callbacks) { @@ -80,4 +80,4 @@ std::vector<SCallbackFNPtr>* CHookSystemManager::getVecForEvent(const std::strin Debug::log(LOG, "[hookSystem] New hook event registered: {}", event); return &m_mRegisteredHooks[event]; -}
\ No newline at end of file +} |
