fix bug from 9767f79346 that made the cheat search results list produce strange cheats without 0x02xxxxxx prefix that don't work

This commit is contained in:
zeromus 2023-06-25 18:24:25 -04:00
parent ba83b68b7f
commit f48aee928c
1 changed files with 1 additions and 1 deletions

View File

@ -1306,7 +1306,7 @@ INT_PTR CALLBACK CheatsSearchViewWnd(HWND dialog, UINT msg,WPARAM wparam,LPARAM
while (cheatSearch->getList(&address, &val))
{
char buf[256];
wsprintf(buf, "0x0%07X", address);
wsprintf(buf, "0x02%06X", address);
lvi.pszText= buf;
u32 row = SendMessage(searchListView, LVM_INSERTITEM, 0, (LPARAM)&lvi);
_ltoa(val, buf, 10);