Fix wx bullshit which made the watch view assert on my machine.
1) Apparently wxString::Format is type safe, and passing a u32 to it with the format "%lu" crashes with a meaningless assertion failure. Sure, it's the wrong type, but the error sure doesn't help... 2) "A MenuItem ID of Zero does not work under Mac". Thanks for the helpful assert message, no thanks for making your construct have random platform-specific differences for no reason (it's not like menu item IDs directly correspond to a part of Cocoa's menu API like they do on Win32).
This commit is contained in:
parent
87bd57e0be
commit
37d00cceda
|
@ -25,7 +25,7 @@
|
|||
|
||||
enum
|
||||
{
|
||||
IDM_DELETEWATCH,
|
||||
IDM_DELETEWATCH = 1,
|
||||
IDM_ADDMEMCHECK,
|
||||
IDM_VIEWMEMORY,
|
||||
};
|
||||
|
@ -98,7 +98,7 @@ static wxString GetValueByRowCol(int row, int col)
|
|||
case 0: return wxString::Format("%s", GetWatchName(row));
|
||||
case 1: return wxString::Format("%08x", GetWatchAddr(row));
|
||||
case 2: return wxString::Format("%08x", GetWatchValue(row));
|
||||
case 3: return wxString::Format("%lu", GetWatchValue(row));
|
||||
case 3: return wxString::Format("%u", GetWatchValue(row));
|
||||
case 4:
|
||||
{
|
||||
u32 addr = GetWatchAddr(row);
|
||||
|
|
Loading…
Reference in New Issue