diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-18 13:54:24 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-18 13:54:24 +0200 |
commit | cb5473418b1f3b26555e26840a87a6feed3f583b (patch) | |
tree | 7a52547907b91508de964fff28b2889293f78c40 /lib/sqfs | |
parent | d568f2b4c0d60752b364e9ac1a913198e869c828 (diff) |
Fix type flag decoding in win32 seek function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r-- | lib/sqfs/src/io/win32.c | 2 |
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; |