[Tizen] Fix EECodeManager::GetAmbientSP on x86/Linux
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Fri, 20 Apr 2018 20:52:57 +0000 (23:52 +0300)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
src/coreclr/vm/eetwain.cpp

index 5c48a13535336a2611f08ab4d4f0fc81d69f6a64..6721c342fd833899fc64c735e4ad88558830d491 100644 (file)
@@ -6108,7 +6108,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;
     }