fix Test CallLoop bugs when builded with win32

This commit is contained in:
haikejishu
2022-04-03 14:09:14 +08:00
committed by Anton Akhmetshyn
parent 61fe5252aa
commit 5ede6ce50c
+10
View File
@@ -553,6 +553,11 @@ NTSTATUS RemoteExec::PrepareCallAssembly(
}
a.GenPrologue();
if (_process.core().isWow64())
{
a->pusha();
a->pushf();
}
a.GenCall( pfn, args, cc );
// Retrieve result from XMM0 or ST0
@@ -571,6 +576,11 @@ NTSTATUS RemoteExec::PrepareCallAssembly(
}
AddReturnWithEvent( a, mt_default, retType );
if (_process.core().isWow64())
{
a->popf();
a->popa();
}
a.GenEpilogue();
return STATUS_SUCCESS;