mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Don't return -1 from read/write, they are uint32...
svn-id: r14788
This commit is contained in:
parent
77026760c8
commit
e967fdbb2a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user