From 60ed70ef5047cad45e94b673edf4e975874f114c Mon Sep 17 00:00:00 2001 From: smf- Date: Sat, 16 Mar 2013 11:52:50 +0000 Subject: [PATCH] revision 21548 caused "trace off" to crash with a access violation [smf] --- src/emu/debug/debugcmd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c index 4ceeb684edf..7e9fd071ee7 100644 --- a/src/emu/debug/debugcmd.c +++ b/src/emu/debug/debugcmd.c @@ -2544,12 +2544,8 @@ static void execute_trace_internal(running_machine &machine, int ref, int params if (!debug_command_parameter_command(machine, action = param[2])) return; - /* further validation */ - if (mame_stricmp(filename, "off") == 0) - filename = NULL; - /* open the file */ - if (filename) + if (mame_stricmp(filename, "off") != 0) { mode = "w";