summaryrefslogtreecommitdiff
path: root/src/vm/threadsuspend.cpp
diff options
context:
space:
mode:
authorKoundinya Veluri <kouvel@microsoft.com>2016-02-02 16:49:32 -0800
committerKoundinya Veluri <kouvel@microsoft.com>2016-02-02 17:06:43 -0800
commitf3b01d02b24419f666ee55329f47ddbda876816a (patch)
tree46a440495f6e0710cdba94f4fcef8c69835532dd /src/vm/threadsuspend.cpp
parentcf260507a0af8e20b827d524c7f2ea55263e0545 (diff)
downloadcoreclr-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.cpp3
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();