From 8949c1e30949cfe8736ee59b19b31cf378fae20d Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Wed, 26 May 2010 21:03:42 +0000 Subject: If the format is not one of the expected ones, just return rather than proceeding with uninitialized data. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5495 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp') diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp index a4f8904fbe..cb0895dd89 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp @@ -538,6 +538,9 @@ void CCodeWindow::OnToggleDLLWindow(int Id, bool _Show, int i) PLUGINTYPE = PLUGIN_TYPE_VIDEO; Title = wxT("Video"); break; + default: + PanicAlert("CCodeWindow::OnToggleDLLWindow"); + return; } if (_Show) -- cgit v1.2.3