# HG changeset patch # User Herman Bloggs # Date 1070847682 0 # Node ID f1d2907db5beea73ccf6d59baca1dbd914cf96ec # Parent 9db4ec5e6bcaddf88d42f83fb091918d97eb30e9 [gaim-migrate @ 8448] Create console if gaim was run with d flag. committer: Tailor Script diff -r 9db4ec5e6bca -r f1d2907db5be src/win_gaim.c --- a/src/win_gaim.c Mon Dec 08 00:52:54 2003 +0000 +++ b/src/win_gaim.c Mon Dec 08 01:41:22 2003 +0000 @@ -260,6 +260,12 @@ char gaimdir[MAX_PATH]; HMODULE hmod; + /* If debug flag used, create console for output */ + if(strstr(lpszCmdLine, "-d")) { + if(AllocConsole()) + freopen ("CONOUT$", "w", stdout); + } + /* Load exception handler if we have it */ if(GetModuleFileName(NULL, gaimdir, MAX_PATH) != 0) { char *tmp = gaimdir;