(brainsucker) bug-fix-release, 4.06.2004

1. System::Copy /SIZE fixed (Kichik).
2. System::Copy with destination auto-allocation now pushes destination
address on stack.
3. Callbacks fixed (Kichik's kick is awesome).


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3555 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-06-04 15:32:05 +00:00
parent 5c4deddee2
commit 879a8245bc
5 changed files with 36 additions and 20 deletions

View file

@ -993,7 +993,7 @@ SystemProc __declspec(naked) *CallProc(SystemProc *proc)
// Save return
proc->Params[0].Value = z1;
if (proc->Params[0].Size == 2)
// if (proc->Params[0].Size == 2)
proc->Params[0]._value = z2;
// Proc result: OK
proc->ProcResult = PR_OK;
@ -1161,8 +1161,9 @@ SystemProc __declspec(naked) *CallBack(SystemProc *proc)
_asm
{
// Prepare return
// mov eax, z1
//mov edx, z2
// callback proc result
pop edx
pop eax
// Restore temporary stack and return
@ -1178,16 +1179,23 @@ SystemProc __declspec(naked) *CallBack(SystemProc *proc)
}
#ifdef SYSTEM_LOG_DEBUG
_asm
{
push eax
push edx
}
SYSTEM_EVENT("\n\t\t\tSh-Before call-back");
SYSTEM_LOG_POST;
_asm
{
// callback proc result
pop edx
pop eax
}
#endif
// Fake return from Callback
_asm {
// callback proc result
pop edx
pop eax
// Restore registers
pop esi
pop edi