Don't return -1 from read/write, they are uint32...

svn-id: r14788
This commit is contained in:
Marcus Comstedt 2004-08-26 21:56:25 +00:00
parent 77026760c8
commit e967fdbb2a

View File

@ -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) {