aboutsummaryrefslogtreecommitdiff
path: root/backends/dc
diff options
context:
space:
mode:
Diffstat (limited to 'backends/dc')
-rw-r--r--backends/dc/vmsave.cpp4
1 files changed, 2 insertions, 2 deletions
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) {