From f48aee928c07febd92848d8755d5506b8d7de90e Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 25 Jun 2023 18:24:25 -0400 Subject: [PATCH] fix bug from 9767f793460917931a85735c7d9eaffe2fc691bc that made the cheat search results list produce strange cheats without 0x02xxxxxx prefix that don't work --- desmume/src/frontend/windows/cheatsWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/frontend/windows/cheatsWin.cpp b/desmume/src/frontend/windows/cheatsWin.cpp index 11edebf89..2e713f657 100755 --- a/desmume/src/frontend/windows/cheatsWin.cpp +++ b/desmume/src/frontend/windows/cheatsWin.cpp @@ -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);