diff options
Diffstat (limited to 'engines/wintermute/Base/file/BSaveThumbFile.cpp')
-rw-r--r-- | engines/wintermute/Base/file/BSaveThumbFile.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wintermute/Base/file/BSaveThumbFile.cpp b/engines/wintermute/Base/file/BSaveThumbFile.cpp index a7a844fc9d..266d19b46c 100644 --- a/engines/wintermute/Base/file/BSaveThumbFile.cpp +++ b/engines/wintermute/Base/file/BSaveThumbFile.cpp @@ -120,19 +120,19 @@ ERRORCODE CBSaveThumbFile::read(void *buffer, uint32 size) { //////////////////////////////////////////////////////////////////////////
-ERRORCODE CBSaveThumbFile::seek(uint32 pos, TSeek origin) {
+ERRORCODE CBSaveThumbFile::seek(uint32 pos, int whence) {
if (!_data) return STATUS_FAILED;
uint32 newPos = 0;
- switch (origin) {
- case SEEK_TO_BEGIN:
+ switch (whence) {
+ case SEEK_SET:
newPos = pos;
break;
- case SEEK_TO_END:
+ case SEEK_END:
newPos = _size + pos;
break;
- case SEEK_TO_CURRENT:
+ case SEEK_CUR:
newPos = _pos + pos;
break;
}
|