Backed out a change so that debug versions and release versions can talk

This commit is contained in:
Zane U. Ji 2014-04-23 21:44:49 +08:00
parent 54e2064fe9
commit a988b943c5
1 changed files with 0 additions and 4 deletions

View File

@ -194,11 +194,7 @@ bool MyClient::talkToServer ( int argc, const wxChar * const *argv )
// wxConnectionBase::Poke expects something other than NULL in debug // wxConnectionBase::Poke expects something other than NULL in debug
// version // version
static wxChar whatBuffer[] = _T ( "Data" ); static wxChar whatBuffer[] = _T ( "Data" );
#ifdef __WXDEBUG__
const static size_t bufSize = sizeof ( whatBuffer ) - sizeof ( wxChar ); const static size_t bufSize = sizeof ( whatBuffer ) - sizeof ( wxChar );
#else
const static size_t bufSize = 0;
#endif
if ( argc <= 1 ) if ( argc <= 1 )
{ {
connection->Poke ( IPC_NO_FILE, whatBuffer, bufSize ); connection->Poke ( IPC_NO_FILE, whatBuffer, bufSize );