correct MXIOINFO::Seek() return type

This commit is contained in:
Ramen2X 2023-10-22 13:21:19 -04:00
parent 7f1319f4b8
commit f202c72a01
2 changed files with 4 additions and 4 deletions

View File

@ -124,9 +124,9 @@ MxLong MXIOINFO::Read(void *p_buf, MxLong p_len)
}
// OFFSET: LEGO1 0x100cca00
MxLong MXIOINFO::Seek(MxLong p_offset, int p_origin)
MxResult MXIOINFO::Seek(MxLong p_offset, int p_origin)
{
MxLong result = FAILURE;
MxResult result = FAILURE;
// If buffered I/O
if (m_info.pchBuffer) {
@ -142,7 +142,7 @@ MxLong MXIOINFO::Seek(MxLong p_offset, int p_origin)
}
} else if (p_origin == SEEK_END) {
// not possible with buffered I/O
return -1;
return FAILURE;
}
// else p_origin == SEEK_SET.

View File

@ -15,7 +15,7 @@ class MXIOINFO
MxU16 Open(const char *, MxULong);
MxU16 Close(MxLong);
MxLong Read(void *, MxLong);
MxLong Seek(MxLong, int);
MxResult Seek(MxLong, int);
MxU16 SetBuffer(char *, MxLong, MxLong);
MxU16 Flush(MxU16);
MxU16 Advance(MxU16);