https://bugs.winehq.org/show_bug.cgi?id=40200
Bug ID: 40200 Summary: ftell function problems Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: eliidida@gmail.com Distribution: ---
Hello,
I have a console application for Windows so it's a .exe. The console .exe only has one function, no GUI or anything. The console application basically obfuscates a file. Command: ConsoleApp.exe FileName.dylib
I have tried Wine (stable or development builds) and while I can run the console application fine, and it exits with "Success", the problem is the output file that is ran using Wine on Linux has a slight difference compared to the output file that was ran using the same .exe but on Windows.
After investigating the console .exe program, we found out that the whole problem was due to a piece of code in the .exe "ftell function". Wine apparently doesn't support it? Or something similar because if we compare the two output files, the only difference is in here: http://i.imgur.com/vghTN2X.png Left is Wine on Linux (Ubuntu) and Right is normal Windows OS output file.
This is the ftell code:
Can you verify this? I did ask on IRC and on the Forums, they told me to submit a bug report.
Thank you for your time and I hope a fix for this comes as soon as possible so I can bring my project to life.
https://bugs.winehq.org/show_bug.cgi?id=40200
--- Comment #1 from eliidida@gmail.com --- Here is my example .exe and my example .dylib file.
https://www.dropbox.com/s/002qu6hoqfn7nxg/CPLoaderConsole.zip?dl=0
Usage:
CPLoaderConsole.exe example.dylib
The file size of the .dylib should raise by a few KB.
Then, compare the output .dylibs from Windows and Wine on Linux using Beyond Compare 4 (or any other tools) and see the difference.
Thank you!
https://bugs.winehq.org/show_bug.cgi?id=40200
eliidida@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias| |Anthony