From 636ce9fc1da5fbf5ff5773263f1caa45be77288c Mon Sep 17 00:00:00 2001 From: "sudonim1@gmail.com" Date: Fri, 21 Sep 2012 13:39:57 +0000 Subject: [PATCH] SPU2-X: Fix old crash on state load if logging is enabled. (It's appalling that this is in the state though.) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5417 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Dma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/spu2-x/src/Dma.cpp b/plugins/spu2-x/src/Dma.cpp index 5d6db59314..cb0a22ce8c 100644 --- a/plugins/spu2-x/src/Dma.cpp +++ b/plugins/spu2-x/src/Dma.cpp @@ -78,7 +78,7 @@ void DMALogClose() void V_Core::LogAutoDMA( FILE* fp ) { - if( !DMALog() || !fp ) return; + if( !DMALog() || !fp || !DMAPtr ) return; fwrite( DMAPtr+InputDataProgress, 0x400, 1, fp ); }