fixed bug #2772570 (CheatSystem: Address size reverting after search restart)
This commit is contained in:
parent
19d5e1c354
commit
7fd9817cdb
|
@ -931,7 +931,7 @@ BOOL CALLBACK CheatsSearchExactWnd(HWND dialog, UINT msg,WPARAM wparam,LPARAM lp
|
||||||
ltoa(searchNumberResults, buf, 10);
|
ltoa(searchNumberResults, buf, 10);
|
||||||
SetWindowText(GetDlgItem(dialog, IDC_SNUMBER), buf);
|
SetWindowText(GetDlgItem(dialog, IDC_SNUMBER), buf);
|
||||||
SetFocus(GetDlgItem(dialog, IDC_EVALUE));
|
SetFocus(GetDlgItem(dialog, IDC_EVALUE));
|
||||||
return TRUE;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
@ -986,7 +986,7 @@ BOOL CALLBACK CheatsSearchCompWnd(HWND dialog, UINT msg,WPARAM wparam,LPARAM lpa
|
||||||
char buf[256];
|
char buf[256];
|
||||||
ltoa(searchNumberResults, buf, 10);
|
ltoa(searchNumberResults, buf, 10);
|
||||||
SetWindowText(GetDlgItem(dialog, IDC_SNUMBER), buf);
|
SetWindowText(GetDlgItem(dialog, IDC_SNUMBER), buf);
|
||||||
return TRUE;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
@ -1070,6 +1070,7 @@ BOOL CALLBACK CheatsSearchViewWnd(HWND dialog, UINT msg,WPARAM wparam,LPARAM lpa
|
||||||
SetFocus(searchListView);
|
SetFocus(searchListView);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
{
|
{
|
||||||
switch (LOWORD(wparam))
|
switch (LOWORD(wparam))
|
||||||
|
@ -1113,7 +1114,7 @@ BOOL CALLBACK CheatsSearchMainWnd(HWND dialog, UINT msg,WPARAM wparam,LPARAM lpa
|
||||||
EnableWindow(hBRestart, FALSE);
|
EnableWindow(hBRestart, FALSE);
|
||||||
EnableWindow(hBView, FALSE);
|
EnableWindow(hBView, FALSE);
|
||||||
EnableWindow(hBSearch, TRUE);
|
EnableWindow(hBSearch, TRUE);
|
||||||
return TRUE;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
@ -1134,28 +1135,26 @@ BOOL CALLBACK CheatsSearchMainWnd(HWND dialog, UINT msg,WPARAM wparam,LPARAM lpa
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
case IDC_RADIO5: // unsigned
|
case IDC_RADIO5: // unsigned
|
||||||
{
|
|
||||||
searchSign = 0;
|
searchSign = 0;
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
SetWindowText(GetDlgItem(dialog, searchRangeIDDs[i]), searchRangeText[searchSign][i]);
|
SetWindowText(GetDlgItem(dialog, searchRangeIDDs[i]), searchRangeText[searchSign][i]);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
|
||||||
case IDC_RADIO6: //signed
|
case IDC_RADIO6: //signed
|
||||||
{
|
|
||||||
searchSign = 1;
|
searchSign = 1;
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
SetWindowText(GetDlgItem(dialog, searchRangeIDDs[i]), searchRangeText[searchSign][i]);
|
SetWindowText(GetDlgItem(dialog, searchRangeIDDs[i]), searchRangeText[searchSign][i]);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
|
||||||
|
|
||||||
case IDC_RADIO7: // exact value search
|
case IDC_RADIO7: // exact value search
|
||||||
searchType = 0;
|
searchType = 0;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
case IDC_RADIO8: // comparative search
|
case IDC_RADIO8: // comparative search
|
||||||
searchType = 1;
|
searchType = 1;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue