mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
DolphinWX: Fix a possible crash when setting debugger memory values.
This commit is contained in:
parent
44e43fe5c3
commit
298425920a
@ -160,6 +160,12 @@ void CMemoryWindow::JumpToAddress(u32 _Address)
|
||||
|
||||
void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
|
||||
{
|
||||
if (!Memory::IsInitialized())
|
||||
{
|
||||
PanicAlertT("Cannot set uninitialized memory.");
|
||||
return;
|
||||
}
|
||||
|
||||
std::string str_addr = WxStrToStr(addrbox->GetValue());
|
||||
std::string str_val = WxStrToStr(valbox->GetValue());
|
||||
u32 addr;
|
||||
|
Loading…
Reference in New Issue
Block a user