]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ipcbase.cpp
use correct fallback file name in SaveFile() (patch 820884)
[wxWidgets.git] / src / common / ipcbase.cpp
index cc4e0a8ef18ec524a4bd49aa832be313ad3849e3..af60bef9ac0c6f48025f5ab3f27a286cecb21761 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "ipcbase.h"
 #endif
 
@@ -77,7 +77,7 @@ wxChar *wxConnectionBase::GetBufferAtLeast( size_t bytes )
   {  // need to resize buffer
     if ( m_deletebufferwhendone )
     { // we're in charge of buffer, increase it
-      if ( !m_buffer )
+      if ( m_buffer )
         delete m_buffer;
       m_buffer = new wxChar[bytes];
       m_buffersize = bytes;