Mercurial > pidgin
comparison src/win_gaim.c @ 7802:f1d2907db5be
[gaim-migrate @ 8448]
Create console if gaim was run with d flag.
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Mon, 08 Dec 2003 01:41:22 +0000 |
parents | 07156f873116 |
children | fa6395637e2c |
comparison
equal
deleted
inserted
replaced
7801:9db4ec5e6bca | 7802:f1d2907db5be |
---|---|
258 { | 258 { |
259 char errbuf[512]; | 259 char errbuf[512]; |
260 char gaimdir[MAX_PATH]; | 260 char gaimdir[MAX_PATH]; |
261 HMODULE hmod; | 261 HMODULE hmod; |
262 | 262 |
263 /* If debug flag used, create console for output */ | |
264 if(strstr(lpszCmdLine, "-d")) { | |
265 if(AllocConsole()) | |
266 freopen ("CONOUT$", "w", stdout); | |
267 } | |
268 | |
263 /* Load exception handler if we have it */ | 269 /* Load exception handler if we have it */ |
264 if(GetModuleFileName(NULL, gaimdir, MAX_PATH) != 0) { | 270 if(GetModuleFileName(NULL, gaimdir, MAX_PATH) != 0) { |
265 char *tmp = gaimdir; | 271 char *tmp = gaimdir; |
266 char *prev = NULL; | 272 char *prev = NULL; |
267 | 273 |