http://bugs.winehq.org/show_bug.cgi?id=17003 Summary: fseek with whence=SEEK_END after fread is ignored Product: Wine Version: 1.1.13 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: msvcrt AssignedTo: wine-bugs(a)winehq.org ReportedBy: lkcl(a)lkcl.net Created an attachment (id=18793) --> (http://bugs.winehq.org/attachment.cgi?id=18793) test lseek SEEK_END being ignored after fread best expressed in python: filelen = 200 f = open("tst", "wb") for i in range(filelen): f.write(chr(i%256)) f.close() f = open("tst", "rb") f.seek(filelen-22) x = f.read(20) f.seek(-98, 2) print (filelen-98), f.tell() but c version is attached. from what i can best tell, the lseek(-9, SEEK_END) is just simply... being ignored! :) if you comment out the fread, the lseek is successful. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.