Vincent Povirk : shell32: Use CREATE_NEW_CONSOLE when SEE_MASK_NOCONSOLE is omitted.
Alexandre Julliard
julliard at winehq.org
Fri Apr 25 14:15:24 CDT 2014
Module: wine
Branch: master
Commit: 2005be6dc92c0943ede01525cecad88f8e83c9c7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2005be6dc92c0943ede01525cecad88f8e83c9c7
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed Apr 16 15:50:37 2014 -0500
shell32: Use CREATE_NEW_CONSOLE when SEE_MASK_NOCONSOLE is omitted.
---
dlls/shell32/shlexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index 41c147d..a6bc5c8 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -338,7 +338,7 @@ static UINT_PTR SHELL_ExecuteW(const WCHAR *lpCmd, WCHAR *env, BOOL shWait,
startup.dwFlags = STARTF_USESHOWWINDOW;
startup.wShowWindow = psei->nShow;
dwCreationFlags = CREATE_UNICODE_ENVIRONMENT;
- if (psei->fMask & SEE_MASK_NO_CONSOLE)
+ if (!(psei->fMask & SEE_MASK_NO_CONSOLE))
dwCreationFlags |= CREATE_NEW_CONSOLE;
if (CreateProcessW(NULL, (LPWSTR)lpCmd, NULL, NULL, FALSE, dwCreationFlags, env,
lpDirectory, &startup, &info))
More information about the wine-cvs
mailing list