mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #3296 from sepalani/r_menu
DebuggerViews: Fixed nullptr dereferences
This commit is contained in:
@ -156,7 +156,7 @@ void CMemoryView::OnScrollWheel(wxMouseEvent& event)
|
|||||||
|
|
||||||
void CMemoryView::OnPopupMenu(wxCommandEvent& event)
|
void CMemoryView::OnPopupMenu(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
CFrame* main_frame = (CFrame*)(GetParent()->GetParent()->GetParent());
|
CFrame* main_frame = static_cast<CFrame*>(GetGrandParent()->GetParent());
|
||||||
CCodeWindow* code_window = main_frame->g_pCodeWindow;
|
CCodeWindow* code_window = main_frame->g_pCodeWindow;
|
||||||
CWatchWindow* watch_window = code_window->m_WatchWindow;
|
CWatchWindow* watch_window = code_window->m_WatchWindow;
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ void CRegisterView::OnMouseDownR(wxGridEvent& event)
|
|||||||
|
|
||||||
void CRegisterView::OnPopupMenu(wxCommandEvent& event)
|
void CRegisterView::OnPopupMenu(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
CFrame* main_frame = (CFrame*)(GetParent()->GetParent());
|
CFrame* main_frame = static_cast<CFrame*>(GetGrandParent()->GetParent());
|
||||||
CCodeWindow* code_window = main_frame->g_pCodeWindow;
|
CCodeWindow* code_window = main_frame->g_pCodeWindow;
|
||||||
CWatchWindow* watch_window = code_window->m_WatchWindow;
|
CWatchWindow* watch_window = code_window->m_WatchWindow;
|
||||||
CMemoryWindow* memory_window = code_window->m_MemoryWindow;
|
CMemoryWindow* memory_window = code_window->m_MemoryWindow;
|
||||||
|
@ -261,7 +261,7 @@ void CWatchView::OnMouseDownR(wxGridEvent& event)
|
|||||||
|
|
||||||
void CWatchView::OnPopupMenu(wxCommandEvent& event)
|
void CWatchView::OnPopupMenu(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
CFrame* main_frame = (CFrame*)(GetParent()->GetParent());
|
CFrame* main_frame = static_cast<CFrame*>(GetGrandParent()->GetParent());
|
||||||
CCodeWindow* code_window = main_frame->g_pCodeWindow;
|
CCodeWindow* code_window = main_frame->g_pCodeWindow;
|
||||||
CWatchWindow* watch_window = code_window->m_WatchWindow;
|
CWatchWindow* watch_window = code_window->m_WatchWindow;
|
||||||
CMemoryWindow* memory_window = code_window->m_MemoryWindow;
|
CMemoryWindow* memory_window = code_window->m_MemoryWindow;
|
||||||
|
Reference in New Issue
Block a user