Skip to content

Commit

Permalink
Pop values for the early return.
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmTrial committed Jun 6, 2017
1 parent 69168be commit fc7e562
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion BH/Modules/Bnet/Bnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,16 @@ void Bnet::RemovePassPatch() {
Control* box = *p_D2MULTI_PassBox;
BOOL(__stdcall *FunCallBack)(Control*, DWORD, DWORD) = D2MULTI_NeededForPassRemovalIDontKnowRenameIt;

if (Bnet::lastPass.size() == 0)
if (Bnet::lastPass.size() == 0) {
__asm {
pop esi
pop edi
popad
xor eax, eax
sub ecx, 01
}
return;
}

wchar_t *wszLastPass = AnsiToUnicode("");
D2WIN_SetControlText(box, wszLastPass);
Expand Down

0 comments on commit fc7e562

Please sign in to comment.