https://bugs.winehq.org/show_bug.cgi?id=57090
Guillermo Reisch guillere@adinet.com.uy changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|crypt32 |-unknown
--- Comment #1 from Guillermo Reisch guillere@adinet.com.uy --- WINEDEBUG=trace+winevdm wine cmd
kcfg16 1 """"
013c:trace:winevdm:main GetCommandLine = 'C:\windows\system32\winevdm.exe --app-name "C:\windows\system32\kcfg16.exe" kcfg16 1 """"' ... 013c:trace:winevdm:main cmdline = '1 "' ... => expected cmdline = '1 """"'
winevdm kcfg16 1 "val1" "val 2"
015c:trace:winevdm:main GetCommandLine = 'winevdm kcfg16 1 "val1" "val 2"' ... 015c:trace:winevdm:main cmdline = '1 val1 "val 2"' ... => expected cmdline = '1 "val1" "val 2"'
winevdm kcfg16 A B
0168:trace:winevdm:main GetCommandLine = 'winevdm kcfg16 A B ' 0168:trace:winevdm:main appname = 'C:\windows\system32\kcfg16.exe' 0168:trace:winevdm:main cmdline = 'A B' 0168:trace:winevdm:main argv[0]: 'winevdm' 0168:trace:winevdm:main argv[1]: 'kcfg16' 0168:trace:winevdm:main argv[2]: 'A' 0168:trace:winevdm:main argv[3]: 'B' => expected cmdline = 'A B '
winevdm use argv[] to recreate command line instead of using GetCommandLineA ; the problem is that you cannot recreate command line from argv because information is lost when argv is created Need to parse GetCommandLineA to create cmdline for w16 program