win32 - fix bug I introduced to memwatch in last commit
This commit is contained in:
parent
7148bf9de2
commit
f2387b6a2a
|
@ -262,7 +262,7 @@ static struct MWRec
|
|||
//Update the values in the Memory Watch window
|
||||
void UpdateMemWatch()
|
||||
{
|
||||
if(hwndMemWatch)
|
||||
if(hwndMemWatch && GameInfo)
|
||||
{
|
||||
SetTextColor(hdc,RGB(0,0,0));
|
||||
SetBkColor(hdc,GetSysColor(COLOR_3DFACE));
|
||||
|
@ -272,6 +272,8 @@ void UpdateMemWatch()
|
|||
MWRec& mwrec = mwrecs[i];
|
||||
|
||||
//Display blue if address is frozen
|
||||
if (FrozenAddressCount && FrozenAddresses.size())
|
||||
{
|
||||
for (unsigned int x = 0; x < FrozenAddressCount; x++)
|
||||
{
|
||||
if (mwrec.addr == FrozenAddresses[x])
|
||||
|
@ -279,6 +281,7 @@ void UpdateMemWatch()
|
|||
SetTextColor(hdc,RGB(0,0,255));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
char* text;
|
||||
if(mwrec.valid && GameInfo)
|
||||
|
|
Loading…
Reference in New Issue