- fixed bug in SetBPX, where the found breakpoint type wasn't checked

This commit is contained in:
mr.exodia 2013-08-26 02:56:59 +02:00
parent 425107b86e
commit 74b1bb7963
7 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -12773,11 +12773,11 @@ __declspec(dllexport) bool SetBPX(ULONG_PTR bpxAddress, DWORD bpxType, LPVOID bp
} }
for(i = 0; i < BreakPointSetCount; i++) for(i = 0; i < BreakPointSetCount; i++)
{ {
if(BreakPointBuffer[i].BreakPointAddress == bpxAddress && BreakPointBuffer[i].BreakPointActive == UE_BPXACTIVE) if(BreakPointBuffer[i].BreakPointAddress == bpxAddress && BreakPointBuffer[i].BreakPointActive == UE_BPXACTIVE && (BreakPointBuffer[i].BreakPointType == UE_SINGLESHOOT || BreakPointBuffer[i].BreakPointType == UE_BREAKPOINT))
{ {
return(false); return(false);
} }
else if(BreakPointBuffer[i].BreakPointAddress == bpxAddress && BreakPointBuffer[i].BreakPointActive == UE_BPXINACTIVE) else if(BreakPointBuffer[i].BreakPointAddress == bpxAddress && BreakPointBuffer[i].BreakPointActive == UE_BPXINACTIVE && (BreakPointBuffer[i].BreakPointType == UE_SINGLESHOOT || BreakPointBuffer[i].BreakPointType == UE_BREAKPOINT))
{ {
return(EnableBPX(bpxAddress)); return(EnableBPX(bpxAddress));
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.