http://bugs.winehq.org/show_bug.cgi?id=25950
Summary: SEE_MASK_NO_CONSOLE flag in ShellExecuteEx have opposite effect Product: Wine Version: 1.3.12 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: shell32 AssignedTo: wine-bugs@winehq.org ReportedBy: atohom@gmail.com
Created an attachment (id=33084) --> (http://bugs.winehq.org/attachment.cgi?id=33084) compiled executable
Despite of what MSDN is saying SEE_MASK_NO_CONSOLE in not equivalent of CREATE_NEW_CONSOLE from CreateProcess, it its opposite. On Windows this test program runs in single window, but in wine it creates separate console.
#include <windows.h>
int main(int nargs,char *args[]) { SHELLEXECUTEINFOW si={sizeof(si)};
si.fMask=SEE_MASK_FLAG_NO_UI|SEE_MASK_NOASYNC|SEE_MASK_NOCLOSEPROCESS|SEE_MASK_NO_CONSOLE; si.lpFile=L"cmd.exe"; si.lpParameters=L"/C dir && pause"; si.nShow = SW_SHOWNORMAL; ShellExecuteExW(&si); WaitForSingleObject(si.hProcess, INFINITE); return 0; }
http://bugs.winehq.org/show_bug.cgi?id=25950
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=25950
Daniel Jelinski djelinski1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |djelinski1@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=25950
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |nerv@dawncrow.de Ever confirmed|0 |1
--- Comment #1 from André H. nerv@dawncrow.de --- sorry for the late response, but confirming now. could you please add a testcase in wine for this and fix it in dlls/shell32/shlexec.c
https://bugs.winehq.org/show_bug.cgi?id=25950
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #2 from Sebastian Lackner sebastian@fds-team.de --- Wasn't this already fixed by: http://source.winehq.org/git/wine.git/commit/2005be6dc92c0943ede01525cecad88... ?
Unfortunately the fix caused a regression, see: https://bugs.winehq.org/show_bug.cgi?id=36216
https://bugs.winehq.org/show_bug.cgi?id=25950
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |focht@gmx.net Resolution|--- |FIXED
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello folks,
--- quote --- Wasn't this already fixed by: http://source.winehq.org/git/wine.git/commit/2005be6dc92c0943ede01525cecad88... ?
Unfortunately the fix caused a regression, see: https://bugs.winehq.org/show_bug.cgi?id=36216 --- quote ---
indeed this was fixed some time ago.
Regards
https://bugs.winehq.org/show_bug.cgi?id=25950
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.44.
https://bugs.winehq.org/show_bug.cgi?id=25950
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2005be6dc92c0943ede01525cec | |ad88f8e83c9c7
--- Comment #5 from André H. nerv@dawncrow.de --- Adding Fixed by SHA1: 2005be6dc92c0943ede01525cecad88f8e83c9c7