https://bugs.winehq.org/show_bug.cgi?id=39932
Bug ID: 39932 Summary: bat-script with quotes cann't be called using CreateProcess Product: Wine Version: 1.9.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: andrej.skvortzov@gmail.com Distribution: ---
Created attachment 53340 --> https://bugs.winehq.org/attachment.cgi?id=53340 executable with source code to reproduce the problem
This problem exists in software to configure HMI panels from OWEN and Xinje.
http://www.owen.ru/catalog/graficheskaya_panel_operatora_s_sensornim_upravle... (Russian)
To reproduce this problem easily minimal test program is created. See attached archive cmd_call_batch.tar.xz.
Here are technical details of the problem. To appear following conditions need to be met: - bat-script is called using CreateProcess - name of bat-script is quoted - some parameters of bat-scrits are quoted.
For example,
"test2.bat" "param1" param2
wine runs bat-script using cmd. cmd /c "test2.bat" "param1" param2 On Windows cmd fails if name of bat-script and parameters both are quoted. To avoid this problem attached patch always removes quotes from bat-script's name before cmd is called.