aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-18 13:54:24 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-18 13:54:24 +0200
commitcb5473418b1f3b26555e26840a87a6feed3f583b (patch)
tree7a52547907b91508de964fff28b2889293f78c40
parentd568f2b4c0d60752b364e9ac1a913198e869c828 (diff)
Fix type flag decoding in win32 seek function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-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;