Fix segfault in non-dev build by adding extra check for NULL.

This commit is contained in:
Roel Aaij 2014-03-30 15:39:02 +02:00 committed by Gregory Hainaut
parent 390245806a
commit ec0f9e49c3
1 changed files with 2 additions and 2 deletions

View File

@ -529,7 +529,7 @@ public:
GSFrame* GetGsFramePtr() const { return (GSFrame*)wxWindow::FindWindowById( m_id_GsFrame ); } GSFrame* GetGsFramePtr() const { return (GSFrame*)wxWindow::FindWindowById( m_id_GsFrame ); }
MainEmuFrame* GetMainFramePtr() const { return (MainEmuFrame*)wxWindow::FindWindowById( m_id_MainFrame ); } MainEmuFrame* GetMainFramePtr() const { return (MainEmuFrame*)wxWindow::FindWindowById( m_id_MainFrame ); }
DisassemblyDialog* GetDisassemblyPtr() const { return (DisassemblyDialog*)wxWindow::FindWindowById( m_id_Disassembler ); } DisassemblyDialog* GetDisassemblyPtr() const { return m_id_Disassembler ? (DisassemblyDialog*)wxWindow::FindWindowById( m_id_Disassembler ) : NULL; }
void enterDebugMode(); void enterDebugMode();
void leaveDebugMode(); void leaveDebugMode();
@ -749,4 +749,4 @@ extern void UI_DisableSysShutdown();
extern ExecutorThread& GetSysExecutorThread(); extern ExecutorThread& GetSysExecutorThread();
extern bool g_ConfigPanelChanged; //Indicates that the main config panel is open and holds unapplied changes. extern bool g_ConfigPanelChanged; //Indicates that the main config panel is open and holds unapplied changes.