mirror of
https://github.com/DarthTon/Blackbone.git
synced 2026-10-16 20:50:50 +08:00
fix Test CallLoop bugs when builded with win32
This commit is contained in:
committed by
Anton Akhmetshyn
parent
61fe5252aa
commit
5ede6ce50c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user