win32: prevent crash when using cheat watch (Wraithverge)

This commit is contained in:
OV2 2012-08-31 21:55:06 +02:00
parent f33f96872d
commit 86320ab911
2 changed files with 2 additions and 1 deletions

View File

@ -347,7 +347,7 @@ BEGIN
CONTROL "Hexadecimal",IDC_HEX,"Button",BS_AUTORADIOBUTTON,129,236,67,10
EDITTEXT IDC_VALUE_ENTER,72,253,83,12,ES_UPPERCASE | ES_AUTOHSCROLL | WS_DISABLED
RTEXT "Enter a Value:",IDC_ENTER_LABEL,7,253,54,12,SS_CENTERIMAGE | WS_DISABLED
PUSHBUTTON "&Watch",IDC_C_WATCH,215,91,52,16
PUSHBUTTON "&Watch",IDC_C_WATCH,215,91,52,16,WS_DISABLED
PUSHBUTTON "&Clear Watches",IDC_C_CLEARWATCH,215,108,52,16
PUSHBUTTON "&Load Watches",IDC_C_LOADWATCH,215,125,52,16
PUSHBUTTON "Sa&ve Watches",IDC_C_SAVEWATCH,215,142,52,16

View File

@ -9451,6 +9451,7 @@ INT_PTR CALLBACK DlgCheatSearch(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPara
enable=false;
}
EnableWindow(GetDlgItem(hDlg, IDC_C_ADD), enable);
EnableWindow(GetDlgItem(hDlg, IDC_C_WATCH), enable);
}
// allow typing in an address to jump to it
else if(nmh->hwndFrom == GetDlgItem(hDlg, IDC_ADDYS) && nmh->code == (UINT)LVN_ODFINDITEM)