Mercurial > pidgin
comparison src/win_gaim.c @ 11469:d83e1fe99d69
[gaim-migrate @ 13709]
Patch from Steve L?posi so that the version information is displayed if the -v flag is specified and so the single instance stuff doesn't kick in when -v or -h is specified.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 09 Sep 2005 00:24:22 +0000 |
parents | 9f6df41df587 |
children | 4da9e0d4e8d2 |
comparison
equal
deleted
inserted
replaced
11468:c3cb62d33f53 | 11469:d83e1fe99d69 |
---|---|
331 { | 331 { |
332 char errbuf[512]; | 332 char errbuf[512]; |
333 char gaimdir[MAX_PATH]; | 333 char gaimdir[MAX_PATH]; |
334 HMODULE hmod; | 334 HMODULE hmod; |
335 | 335 |
336 /* If debug or help flag used, create console for output */ | 336 /* If debug or help or version flag used, create console for output */ |
337 if (strstr(lpszCmdLine, "-d") || strstr(lpszCmdLine, "-h")) { | 337 if (strstr(lpszCmdLine, "-d") || strstr(lpszCmdLine, "-h") || strstr(lpszCmdLine, "-v")) { |
338 LPFNATTACHCONSOLE MyAttachConsole = NULL; | 338 LPFNATTACHCONSOLE MyAttachConsole = NULL; |
339 if ((hmod = GetModuleHandle("kernel32.dll"))) { | 339 if ((hmod = GetModuleHandle("kernel32.dll"))) { |
340 MyAttachConsole = | 340 MyAttachConsole = |
341 (LPFNATTACHCONSOLE) | 341 (LPFNATTACHCONSOLE) |
342 GetProcAddress(hmod, "AttachConsole"); | 342 GetProcAddress(hmod, "AttachConsole"); |
369 | 369 |
370 if(!getenv("GAIM_NO_DLL_CHECK")) | 370 if(!getenv("GAIM_NO_DLL_CHECK")) |
371 dll_prep(); | 371 dll_prep(); |
372 | 372 |
373 wgaim_set_locale(); | 373 wgaim_set_locale(); |
374 if(!getenv("GAIM_MULTI_INST") && !wgaim_set_running()) | 374 /* If help or version flag used, do not check Mutex */ |
375 return 0; | 375 if(!strstr(lpszCmdLine, "-h") && !strstr(lpszCmdLine, "-v")) |
376 if(!getenv("GAIM_MULTI_INST") && !wgaim_set_running()) | |
377 return 0; | |
376 | 378 |
377 wgaim_set_proxy(); | 379 wgaim_set_proxy(); |
378 | 380 |
379 /* Now we are ready for Gaim .. */ | 381 /* Now we are ready for Gaim .. */ |
380 if((hmod=LoadLibrary("gaim.dll"))) { | 382 if((hmod=LoadLibrary("gaim.dll"))) { |