From a58cfdac407bc1d8fedc11acd924b275ba28cc51 Mon Sep 17 00:00:00 2001 From: "SND\\dario86_cp" Date: Sat, 12 Mar 2011 18:54:28 +0000 Subject: Commited patch in issue #8171 (by darktjm). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64524 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/DebugMemory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gui/DebugMemory.c') diff --git a/gui/DebugMemory.c b/gui/DebugMemory.c index 289c9b9a..59792cd3 100644 --- a/gui/DebugMemory.c +++ b/gui/DebugMemory.c @@ -19,6 +19,7 @@ #include "Linux.h" #include "../libpcsxcore/psxmem.h" #include +#include "DebugMemory.h" #define MEMVIEW_MAX_LINES 256 @@ -156,7 +157,8 @@ static void MemView_Dump() { FILE *fp = fopen(file, "wb"); if (fp != NULL) { - fwrite(&psxM[start], 1, length, fp); + if(fwrite(&psxM[start], length, 1, fp) != 1) + SysMessage(_("Error writing to %s!"), file); fclose(fp); } else { SysMessage(_("Error writing to %s!"), file); -- cgit v1.2.3