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;
}
|