1
0
Fork 0

DBG: fixed a warning on x64 about the cookie

This commit is contained in:
mrexodia 2017-08-26 15:54:52 +02:00
parent f7182c111e
commit d678ad1e82
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,8 @@ struct CookieQuery
{
duint addr = 0;
duint ret = 0;
duint cookie = 0;
duint cookieptr = 0;
ULONG cookie = 0;
bool removeAddrBp = false;
bool removeRetBp = false;
@ -29,7 +30,7 @@ struct CookieQuery
{
if(valfromstring("[csp]", &ret))
{
cookie = Exprfunc::argget(2);
cookieptr = Exprfunc::argget(2);
if(!BpGet(ret, BPNORMAL, nullptr, nullptr))
{
if(SetBPX(ret, UE_BREAKPOINT, (void*)cbUserBreakpoint))
@ -49,8 +50,8 @@ struct CookieQuery
}
else if(ret && ret == cip)
{
if(!MemRead(cookie, &cookie, sizeof(cookie)))
cookie = 0;
if(!MemRead(cookieptr, &cookie, sizeof(cookie)))
cookie = 0, cookieptr = 0;
if(removeRetBp)
{
DeleteBPX(ret);