From cb5473418b1f3b26555e26840a87a6feed3f583b Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 18 Jun 2023 13:54:24 +0200 Subject: Fix type flag decoding in win32 seek function Signed-off-by: David Oberhollenzer --- lib/sqfs/src/io/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3