mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinWX: Fix a possible crash when setting debugger memory values.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user