diff options
author | Koundinya Veluri <kouvel@microsoft.com> | 2016-02-02 16:49:32 -0800 |
---|---|---|
committer | Koundinya Veluri <kouvel@microsoft.com> | 2016-02-02 17:06:43 -0800 |
commit | f3b01d02b24419f666ee55329f47ddbda876816a (patch) | |
tree | 46a440495f6e0710cdba94f4fcef8c69835532dd /src/vm/threadsuspend.cpp | |
parent | cf260507a0af8e20b827d524c7f2ea55263e0545 (diff) | |
download | coreclr-f3b01d02b24419f666ee55329f47ddbda876816a.tar.gz coreclr-f3b01d02b24419f666ee55329f47ddbda876816a.tar.bz2 coreclr-f3b01d02b24419f666ee55329f47ddbda876816a.zip |
Static analysis fixes
Fixed some issues found by static analysis.
Diffstat (limited to 'src/vm/threadsuspend.cpp')
-rw-r--r-- | src/vm/threadsuspend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vm/threadsuspend.cpp b/src/vm/threadsuspend.cpp index c1ffaf9246..4ef78cf1b6 100644 --- a/src/vm/threadsuspend.cpp +++ b/src/vm/threadsuspend.cpp @@ -4037,6 +4037,7 @@ int RedirectedHandledJITCaseExceptionFilter( // Copy the saved context record into the EH context; ReplaceExceptionContextRecord(pExcepPtrs->ContextRecord, pCtx); + DWORD espValue = pCtx->Esp; if (pThread->GetSavedRedirectContext()) { delete pCtx; @@ -4062,7 +4063,7 @@ int RedirectedHandledJITCaseExceptionFilter( EXCEPTION_REGISTRATION_RECORD *pCurSEH = GetCurrentSEHRecord(); // Unlink all records above the target resume ESP - PopSEHRecords((LPVOID)(size_t)pCtx->Esp); + PopSEHRecords((LPVOID)(size_t)espValue); // Link the special OS handler back in to the top pCurSEH->Next = GetCurrentSEHRecord(); |