https://bugs.winehq.org/show_bug.cgi?id=40421
Bug ID: 40421 Summary: it is the function used by Windows SetFilePointer Product: Wine-staging Version: 1.9.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: p.lemonnier1@free.fr CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de Distribution: ---
Using a program published by the Milec company I discovered that a functionality did not work correctly with Wine .
According to the editor, it is the function used by Windows "SetFilePointer" which does not detect an anomaly whereas and with wine the software is blocked.
I am surprised because wine functions very well with a large number of programs and this software uses only basic functions of Windows.
Thank you very much for the interest which you will carry to this anomaly
Very sincerely Patrice Lemonnier
https://bugs.winehq.org/show_bug.cgi?id=40421
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine-staging |Wine Component|-unknown |-unknown
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Could you be more specific? What does not work? Is there a demo version of this application to test? How to reproduce this bug?
https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #2 from LEMONNIER p.lemonnier1@free.fr --- (In reply to Nikolay Sivov from comment #1)
Could you be more specific? What does not work? Is there a demo version of this application to test? How to reproduce this bug?
Thank you very much for your so fast answer. I will try to explain you more precisely. But I give you the relation with the editor who knows the problem perfectly.
Its name is Michel Leclerc.
The site is milec.com We will try to address you a program with a test.
Thank you very much for all Very sincerely Patrice Lemonnier
https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #3 from LEMONNIER p.lemonnier1@free.fr --- Here is the code wich create error #87 under Wine but not under Windows:
xFPos := SetFilePointer(F, WinDef.LONG(PageNo*PageSize), NIL, FILE_BEGIN); Set_Last_IO_Err; IF (Last_IO_Err = 0) THEN (* No error... *) ELSE (* here: Last_IO_Err = 87 !! show 'PageNo' and 'PageSize' for control *) VioWriteCard(0, 22, PageNo, 12); VioWriteCard(12, 22, PageSize, 12);
(* Show error message *) Signal_Last_IO_Err(FALSE, PosOp, XWFN)
END
PATRICE LEMONNIER
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.
https://bugs.winehq.org/show_bug.cgi?id=40421
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #6 from joaopa jeremielapuree@yahoo.fr --- cd into the directory of the application. Then WINEDEBUG=+file,+tid,+relay wine myapplication.exe
At least, you could anwer to this questions: is there a demo of your application showing the problem?
https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #5 from LEMONNIER p.lemonnier1@free.fr --- (In reply to Nikolay Sivov from comment #4)
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.
I can't use WINEDEBUG. It seems to me too difficult. I have try without result
"This software 'rb.exe' is the first DOS software adapted to Windows by the MILEC company. I hope that this bad usage of function 'SetFilePointer' was not only a waste of time for you but finaly really helps in discovering very-hard-to-find incomptatibilities and so helps in doing Wine always more and more safely usable. Thank you for all"
https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #7 from LEMONNIER p.lemonnier1@free.fr --- (In reply to joaopa from comment #6)
cd into the directory of the application. Then WINEDEBUG=+file,+tid,+relay wine myapplication.exe
At least, you could anwer to this questions: is there a demo of your application showing the problem?
It's my application showing the problem.
I would like to help you much more because I find wine fantastic realy extraordinary.
. But I am unable to describe the problem more. I have transmitted the problem to the editor who decided to modify his program because he wants that it functions under wine.
It is according to him a small bug of wine
It is probable that this bad analysis of the result turned over by the function “SetFilePointer” is rather current within the software old Windows… Very sincerely Patrice Lemonnier
https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- If you have an application, it's really easy to get a log from it, use wiki section I linked at comment 4. Basically all you need to do is to run your program from terminal, and set WINEDEBUG variable before running it. So if usually you run it as 'wine yourprogram.exe', now run it as 'WINEDEBUG=+file,+relay,+tid wine yourprogram.exe >> ~/bug40421.log 2>&1' and attach resulting file named bug40421.log created in you home directory. Without that I don't think we can do much to help you.
https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #9 from LEMONNIER p.lemonnier1@free.fr --- Created attachment 54170 --> https://bugs.winehq.org/attachment.cgi?id=54170 rb.exe don't work in a terminal
lemonnier@lemonnier-CQ2906EF:~$ wine .wine/drive_c/RB.EXE fixme:winediag:start_process Wine Staging 1.9.7 is a testing version containing experimental patches. fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org. fixme:console:SetConsoleIcon : (0x10068) stub!
https://bugs.winehq.org/show_bug.cgi?id=40421
--- Comment #10 from joaopa jeremielapuree@yahoo.fr --- Created attachment 54171 --> https://bugs.winehq.org/attachment.cgi?id=54171 console output with requested channels enabled
The console output with WINEDEBUG=+file,relay+tid