https://bugs.winehq.org/show_bug.cgi?id=35584
Bug ID: 35584 Summary: wine can no longer execute rm.com (DOS application) Product: Wine Version: 1.1.13 Hardware: Other URL: ftp://ftp.pl.freebsd.org/vol/rzm1/simtelnet/msdos/diru tl/ma_rm14.zip OS: other Status: NEW Keywords: download, regression, source Severity: normal Priority: P2 Component: dos Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Classification: Unclassified
I noticed this while looking at bug 17181.
austin@aw25 ~/rm $ wine RM.COM /s testdir err:process:get_process_cpu L"winevdm.exe" uses unsupported architecture (0000) wine: Bad EXE format for Z:\home\austin\rm\RM.COM.
that is a regression, introduced by: 1e78c99388c61d353cf60787eac6415328f54560 is the first bad commit commit 1e78c99388c61d353cf60787eac6415328f54560 Author: Alexandre Julliard julliard@winehq.org Date: Fri Nov 22 12:32:48 2013 +0100
kernel32: Validate the architecture of newly created processes on the server side.
before that, wine would launch the application (via dosbox). Now, it prints that error and exits.
This lets it proceed and return to bug 17181: diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index bf113d6..58f8924 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -1815,6 +1815,7 @@ static int get_process_cpu( const WCHAR *filename, const struct binary_info *bin { switch (binary_info->arch) { + case IMAGE_FILE_MACHINE_UNKNOWN: return 0; case IMAGE_FILE_MACHINE_I386: return CPU_x86; case IMAGE_FILE_MACHINE_AMD64: return CPU_x86_64; case IMAGE_FILE_MACHINE_POWERPC: return CPU_POWERPC;
austin@aw25 ~/oldbugs/17181 $ shasum ma_rm14.zip c706746c4dd10d1e4a737941ca93338f328db523 ma_rm14.zip austin@aw25 ~/oldbugs/17181 $ du -h ma_rm14.zip 16K ma_rm14.zip
https://bugs.winehq.org/show_bug.cgi?id=35584
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|dos |kernel32 Hardware|Other |x86 Version|1.1.13 |1.7.6 Blocks| |17181 Regression SHA1| |1e78c99388c61d353cf60787eac | |6415328f54560 OS|other |Linux
https://bugs.winehq.org/show_bug.cgi?id=35584
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |7066ce0b1e22bc490bd791fd948 | |bbbb3a1400bc9 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #1 from Austin English austinenglish@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/7066ce0b1e22bc490bd791fd94...
https://bugs.winehq.org/show_bug.cgi?id=35584
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.13.