From e967fdbb2a200216cbf49fb5eb896ee7a3a380c1 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Thu, 26 Aug 2004 21:56:25 +0000 Subject: Don't return -1 from read/write, they are uint32... svn-id: r14788 --- backends/dc/vmsave.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/dc/vmsave.cpp b/backends/dc/vmsave.cpp index d695ae2638..210177730f 100644 --- a/backends/dc/vmsave.cpp +++ b/backends/dc/vmsave.cpp @@ -302,7 +302,7 @@ VMSave::~VMSave() uint32 VMSave::read(void *buf, uint32 cnt) { if (issave) - return -1; + return 0; int nbyt = cnt; if (pos + nbyt > size) { @@ -318,7 +318,7 @@ uint32 VMSave::read(void *buf, uint32 cnt) uint32 VMSave::write(const void *buf, uint32 cnt) { if (!issave) - return -1; + return 0; int nbyt = cnt; if (pos + nbyt > size) { -- cgit v1.2.3