diff options
author | Marcus Comstedt | 2004-08-26 21:56:25 +0000 |
---|---|---|
committer | Marcus Comstedt | 2004-08-26 21:56:25 +0000 |
commit | e967fdbb2a200216cbf49fb5eb896ee7a3a380c1 (patch) | |
tree | f69dcc5c85fbdf3c52ee0fbe2386ce006185dd89 | |
parent | 77026760c8f76dbd28c81f1804c5c172ff70e2b8 (diff) | |
download | scummvm-rg350-e967fdbb2a200216cbf49fb5eb896ee7a3a380c1.tar.gz scummvm-rg350-e967fdbb2a200216cbf49fb5eb896ee7a3a380c1.tar.bz2 scummvm-rg350-e967fdbb2a200216cbf49fb5eb896ee7a3a380c1.zip |
Don't return -1 from read/write, they are uint32...
svn-id: r14788
-rw-r--r-- | backends/dc/vmsave.cpp | 4 |
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) { |