[wpdev-commits] wolfpack/win console_win.cpp,1.28,1.29
Brought to you by:
rip,
thiagocorrea
From: Correa <thi...@us...> - 2004-09-19 16:50:55
|
Update of /cvsroot/wpdev/wolfpack/win In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15643/win Modified Files: console_win.cpp Log Message: - Fix crash under windows when the server terminates unexpectedly - Exceptions should always be caught by reference. Index: console_win.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/win/console_win.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** console_win.cpp 19 Sep 2004 16:25:38 -0000 1.28 --- console_win.cpp 19 Sep 2004 16:50:44 -0000 1.29 *************** *** 581,587 **** QMemArray<pchar> argv( 8 ); /* ! Since Windows programs don't get passed the command name as the ! first argument, we need to fetch it explicitly. ! */ static char appFileName[256]; GetModuleFileNameA( 0, appFileName, sizeof( appFileName ) ); --- 581,587 ---- QMemArray<pchar> argv( 8 ); /* ! Since Windows programs don't get passed the command name as the ! first argument, we need to fetch it explicitly. ! */ static char appFileName[256]; GetModuleFileNameA( 0, appFileName, sizeof( appFileName ) ); *************** *** 643,647 **** if ( returnValue_ != 0 ) { ! Console::instance()->send( tr("\nThe server has been shut down. You can close this window now.\n") ); canClose = true; } --- 643,647 ---- if ( returnValue_ != 0 ) { ! Console::instance()->send( ("\nThe server has been shut down. You can close this window now.\n") ); canClose = true; } |