Commit ca30fa5c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wineconsole: Make sure that console process is not attached to another console.

parent 2a622427
...@@ -853,6 +853,9 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh ...@@ -853,6 +853,9 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh
int ret = 1; int ret = 1;
struct wc_init wci; struct wc_init wci;
/* make sure we're not connected to inherited console */
FreeConsole();
if ((ret = WINECON_ParseOptions(lpCmdLine, &wci)) != 0) if ((ret = WINECON_ParseOptions(lpCmdLine, &wci)) != 0)
{ {
printf_res(ret & 0xffff); printf_res(ret & 0xffff);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment