diff --git a/src/drivers/win/memwatch.cpp b/src/drivers/win/memwatch.cpp index 55ddd29a..4a280c18 100644 --- a/src/drivers/win/memwatch.cpp +++ b/src/drivers/win/memwatch.cpp @@ -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)