Skip to content

Commit ac7c9f6

Browse files
committed
Fix wrong regreturn for lseek
1 parent d1db42e commit ac7c9f6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

qiling/os/posix/syscall/unistd.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ def ql_syscall_lseek(ql: Qiling, fd: int, offset: int, lseek_origin: int):
145145
regreturn = ql.os.fd[fd].lseek(offset, lseek_origin)
146146
except OSError:
147147
regreturn = -1
148-
else:
149-
regreturn = 0
150148
else:
151149
regreturn = -EBADF
152150

0 commit comments

Comments
 (0)