[Bug 44334] New: 'start /W "" notepad' does not wait as on native.

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jan 10 04:58:15 CST 2018


https://bugs.winehq.org/show_bug.cgi?id=44334

            Bug ID: 44334
           Summary: 'start /W "" notepad' does not wait as on native.
           Product: Wine
           Version: 3.0-rc5
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: cmd
          Assignee: wine-bugs at winehq.org
          Reporter: bernhardu at mailbox.org
      Distribution: ---

Created attachment 60210
  --> https://bugs.winehq.org/attachment.cgi?id=60210
cmd: Avoid having first parameter to start.exe ignored.

Tried to have a look into #44236.
There a batch script is executed but the start commands
did not wait until the started processes did end.

Example line:
---
start /W  " "  "%SFDIR%automesh"  wr2300
---

As far as I see this is because when WCMD_start encounters an title parameter,
it removes the executable from the cmdline parameter to CreateProcessW.
---
start /W "" notepad
002f:trace:process:create_process_impl app L"C:\\windows\\command\\start.exe"
cmdline L"/W \"\\\"\\\"\" notepad"
---
This get not recognized much, because usually the title is the first
parameter and is therefore ignored by start.exe. But start.exe get executed
because it is also in the file parameter to CreateProcessW.


Attached is a patch that tries to maintain the executable as first parameter
in the cmdline parameter to CreateProcessW.

-- 
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