]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/datectrl.cpp
make sure we don't use uninitalized output stream in OnSysWrite() (coverity checked...
[wxWidgets.git] / src / msw / datectrl.cpp
index c0d3396ddc9da09e6836cbed84cc5f7675497c17..ec84f53d880bfd17498ccb9761086402216d0ef8 100644 (file)
@@ -111,6 +111,7 @@ wxDatePickerCtrl::Create(wxWindow *parent,
             return false;
         }
 
+#if wxUSE_DYNLIB_CLASS
         INITCOMMONCONTROLSEX icex;
         icex.dwSize = sizeof(icex);
         icex.dwICC = ICC_DATE_CLASSES;
@@ -126,6 +127,7 @@ wxDatePickerCtrl::Create(wxWindow *parent,
         }
 
         s_initDone = true;
+#endif        
     }