[Bug 35584] New: wine can no longer execute rm.com (DOS application)

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Feb 11 18:13:48 CST 2014


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 at winehq.org
          Reporter: austinenglish at gmail.com
    Classification: Unclassified

I noticed this while looking at bug 17181.

austin at 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 at 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 at aw25 ~/oldbugs/17181 $ shasum ma_rm14.zip 
c706746c4dd10d1e4a737941ca93338f328db523  ma_rm14.zip
austin at aw25 ~/oldbugs/17181 $ du -h ma_rm14.zip 
16K    ma_rm14.zip

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list