]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/serbase.cpp
added test for writing empty value to the config
[wxWidgets.git] / src / common / serbase.cpp
index cea2ce5efbefb8874248b4d28b738266bd048003..6b89bea73d59ac11fb6b3181beb8ec9cade98c6c 100644 (file)
@@ -15,6 +15,9 @@
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
+#if defined(__WINDOWS__)
+#include "wx/msw/private.h"
+#endif
 
 #include "wx/serbase.h"
 #include "wx/datstrm.h"
@@ -73,7 +76,7 @@ void WXSERIAL(wxList)::LoadObject(wxObjectInputStream& s)
   wxList *list = (wxList *)Object();
   int number, i;
 
-  list->DeleteContents( data_s.Read8() );
+  list->DeleteContents( data_s.Read8() != 0 );
   list->SetKeyType( (wxKeyType) data_s.Read8() );
   number = data_s.Read32();