aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sqfs/src/io/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/src/io/win32.c b/lib/sqfs/src/io/win32.c
index abb3a57..bc625e4 100644
--- a/lib/sqfs/src/io/win32.c
+++ b/lib/sqfs/src/io/win32.c
@@ -94,7 +94,7 @@ int sqfs_native_file_seek(sqfs_file_handle_t fd,
LARGE_INTEGER pos;
DWORD whence;
- switch (type & SQFS_FILE_SEEK_TYPE_MASK) {
+ switch (flags & SQFS_FILE_SEEK_TYPE_MASK) {
case SQFS_FILE_SEEK_START: whence = FILE_BEGIN; break;
case SQFS_FILE_SEEK_CURRENT: whence = FILE_CURRENT; break;
case SQFS_FILE_SEEK_END: whence = FILE_END; break;