Fix EECodeManager::GetAmbientSP on x86/Linux
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Fri, 20 Apr 2018 20:52:57 +0000 (23:52 +0300)
committerKonstantin Baladurin <k.baladurin@samsung.com>
Tue, 24 Sep 2019 16:39:57 +0000 (19:39 +0300)
src/vm/eetwain.cpp

index f973523..c0eb7aa 100644 (file)
@@ -6041,7 +6041,8 @@ TADDR EECodeManager::GetAmbientSP(PREGDISPLAY     pContext,
 #endif // _DEBUG && !DACCESS_COMPILE
 
     if ((stateBuf->hdrInfoBody.prologOffs != hdrInfo::NOT_IN_PROLOG) ||
-        (stateBuf->hdrInfoBody.epilogOffs != hdrInfo::NOT_IN_EPILOG))
+        (stateBuf->hdrInfoBody.epilogOffs != hdrInfo::NOT_IN_EPILOG) ||
+        (GetRegdisplayFPAddress(pContext) == NULL))
     {
         return NULL;
     }