[x86/Linux] Correct update on ResumableFrame (dotnet/coreclr#10339)
authorJonghyun Park <parjong@gmail.com>
Tue, 21 Mar 2017 04:26:19 +0000 (13:26 +0900)
committerJan Kotas <jkotas@microsoft.com>
Tue, 21 Mar 2017 04:26:19 +0000 (21:26 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/beeaf0926c7eccf0a5f86b95ad5b3ed186438dc1

src/coreclr/src/vm/i386/cgenx86.cpp

index f85eb04..135d51e 100644 (file)
@@ -742,7 +742,7 @@ void ResumableFrame::UpdateRegDisplay(const PREGDISPLAY pRD)
 
 #ifdef WIN64EXCEPTIONS
 
-    memcpy(pRD->pCurrentContext, &m_Regs, sizeof(CONTEXT));
+    CopyMemory(pRD->pCurrentContext, m_Regs, sizeof(T_CONTEXT));
 
     pRD->SP = m_Regs->Esp;
     pRD->ControlPC = m_Regs->Eip;