Skip to content

Commit

Permalink
Fix stack offset problem due to unnecessary push
Browse files Browse the repository at this point in the history
  • Loading branch information
nyfrk committed Feb 21, 2021
1 parent d6aa610 commit 207dcff
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions S4ModApi/CGuiBltHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ static void __declspec(naked) __onBlt() {
fsave[esp]

push ecx
push edx
push[esp + 256 + 4 + 20]
push[esp + 256 + 4 + 20]
push[esp + 256 + 4 + 20]
Expand All @@ -81,7 +80,6 @@ static void __declspec(naked) __onBlt() {
push ecx
push edi
call CGuiBltHook::OnBlt
pop edx
pop ecx

frstor[esp]
Expand Down

0 comments on commit 207dcff

Please sign in to comment.