https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- This is a wrong way to check last error, it's only consistent when function returns INVALID_SET_FILE_POINTER. But if it works fine on Windows, then sure, it's a bug. Please get a WINEDEBUG=+file,+tid,+relay log running this application, if you don't know how to do it it's described here -https://wiki.winehq.org/FAQ#How_do_I_get_a_debug_trace.3F. When you have it attach it here, if it's too large, compress it first.