summaryrefslogtreecommitdiff
path: root/gui/DebugMemory.c
diff options
context:
space:
mode:
authorSND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-03-12 18:54:28 +0000
committerSND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-03-12 18:54:28 +0000
commita58cfdac407bc1d8fedc11acd924b275ba28cc51 (patch)
treeb4c2e08c34ef1bfe0ba947ef8eed931c9a43fc0e /gui/DebugMemory.c
parent9bdd06684bcc627c06ddcf4c406f6b48f0dfe389 (diff)
downloadpcsxr-a58cfdac407bc1d8fedc11acd924b275ba28cc51.tar.gz
Commited patch in issue #8171 (by darktjm).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64524 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'gui/DebugMemory.c')
-rw-r--r--gui/DebugMemory.c4
1 files changed, 3 insertions, 1 deletions
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 <glade/glade.h>
+#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);