http://bugs.winehq.org/show_bug.cgi?id=27818
Summary: Eurobattle.net installer not working (failed to create output file) Product: Wine Version: 1.3.23 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: xerox_xerox2000@yahoo.co.uk
Hi, a user reported this problem on userforum. The installer pops up a messagebox "failed to create output file"). From a debug log there's a weird looking filename:
0025:Call KERNEL32.CreateFileA(00b00d08 "C:\users\louis\Temp\_ir_sf_temp_1\\x03",40000000,00000001,00000000,00000002,00 000080,00000000) ret=0040103b 0025:Ret KERNEL32.CreateFileA() retval=ffffffff ret=0040103b
Maybe wine chokes in creating a a weird filename like "\x03" or the filename is misread from the installersetup-file? Haven't got a clue really.
http://bugs.winehq.org/show_bug.cgi?id=27818
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-07-17 02:07:54 CDT --- Created an attachment (id=35579) --> (http://bugs.winehq.org/attachment.cgi?id=35579) debug log
http://bugs.winehq.org/show_bug.cgi?id=27818
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer URL| |http://stefos007.no-ip.org/ | |update/setup_1.26a_manual.e | |xe
--- Comment #2 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-07-17 02:08:35 CDT --- added downloadlink
Forumthread: http://forum.winehq.org/viewtopic.php?t=12808
http://bugs.winehq.org/show_bug.cgi?id=27818
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |user32 Summary|Eurobattle.net installer |Eurobattle.net installer |not working (failed to |fails to run (invalid |create output file) |command line parameters | |passed to child due to | |user32.wsprintf not | |handling %I64u format | |specifier)
--- Comment #3 from Anastasius Focht focht@gmx.net 2011-07-17 04:52:23 CDT --- Hello,
the problem is the command line for the child process.
Due to user32 wsprintf format parser not handling "%I64u" format specifier, it gets passed unmodified to command line for the spawned child.
The child is a generic installer which uses one of these params as PE file offset to read data from parent PE file (main installer archive) hence it must be told about by parent.
--- snip --- ... 006c:Call KERNEL32.CreateProcessW(00000000,0032d108 L"C:\users\focht\Temp\_ir_sf_temp_3\irsetup.exe __IRAOFF:I64u "__IRAFN:Z:\home\focht\Downloads\setup_1.26a_manual.exe" "__IRCT:0" "__IRTSS:I64u" "__IRSID:S-1-5-21-0-0-0-1000"",00000000,00000000,00000000,00000400,00000000,00000000,0032c7b0,0032c7a0) ret=68593d0b ... 006c:Ret KERNEL32.CreateProcessW() retval=00000001 ret=68593d0b --- snip ---
__IRAOFF:I64u = wrong (critical) __IRTSS:I64u = wrong
The parent process uses user32.wsprintfA to construct parameters. Example format string -> "__IRAOFF:%I64u" -> resulting string: "__IRAOFF:I64u" (should contain integer value).
Regards
http://bugs.winehq.org/show_bug.cgi?id=27818
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #4 from Dan Kegel dank@kegel.com 2011-07-17 14:54:53 CDT --- Patch submitted, http://marc.info/?l=wine-patches&m=131093232413934&w=2
http://bugs.winehq.org/show_bug.cgi?id=27818
--- Comment #5 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-07-21 07:06:52 CDT --- (In reply to comment #4)
Patch submitted, http://marc.info/?l=wine-patches&m=131093232413934&w=2
Hi Dan, as the patch has been rejected, any chance you send in an updated patch?
http://bugs.winehq.org/show_bug.cgi?id=27818
--- Comment #6 from Dan Kegel dank@kegel.com 2011-07-21 07:10:04 CDT --- Yes, but I'm not sure when I'll have time.
http://bugs.winehq.org/show_bug.cgi?id=27818
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #7 from Anastasius Focht focht@gmx.net 2011-07-21 12:55:23 CDT --- *** Bug 27099 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=27818
--- Comment #8 from Dan Kegel dank@kegel.com 2011-07-23 02:44:33 CDT --- Created an attachment (id=35652) --> (http://bugs.winehq.org/attachment.cgi?id=35652) draft patch without %lld
I had a moment and stole the appropriate function from wine's msvcrt, see attached working but not yet ready to send draft. Following msvcrt's example more closely might be a good idea... the existing printf code in user32 doesn't get %5d right, iirc.
http://bugs.winehq.org/show_bug.cgi?id=27818
Francisco Pina Martins f.pinamartins@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |f.pinamartins@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=27818
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #9 from Austin English austinenglish@gmail.com 2011-07-25 12:27:54 CDT --- Fixed by http://source.winehq.org/git/wine.git/commitdiff/4ec27a632de01b45464730510d2...
http://bugs.winehq.org/show_bug.cgi?id=27818
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2011-08-05 12:38:04 CDT --- Closing bugs fixed in 1.3.26.
http://bugs.winehq.org/show_bug.cgi?id=27818
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4ec27a632de01b45464730510d2 | |3bb53e8426512