hookSystem: Make needsDeadCleanup volatile (#6356)

The value of needsDeadCleanup would be clobbered after longjmp,
having an undefined value.
This commit is contained in:
John M. Harris, Jr 2024-06-07 09:31:27 -07:00 committed by GitHub
parent af5f24929d
commit 429cff340d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ void CHookSystemManager::emit(std::vector<SCallbackFNPtr>* const callbacks, SCal
return; return;
std::vector<HANDLE> faultyHandles; std::vector<HANDLE> faultyHandles;
bool needsDeadCleanup = false; volatile bool needsDeadCleanup = false;
for (auto& cb : *callbacks) { for (auto& cb : *callbacks) {