]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/data.cpp
don't crash in wxGetWindowXXX() if HWND is 0
[wxWidgets.git] / src / msw / data.cpp
index 7e863a33d30bd2473e9892f661567e5287ed6b9f..9657bb89ede6916cc078413ed1e9e3bb866f60c4 100644 (file)
@@ -96,7 +96,9 @@ wxIcon    wxNullIcon;
 wxCursor  wxNullCursor;
 wxPen     wxNullPen;
 wxBrush   wxNullBrush;
+#if wxUSE_PALETTE
 wxPalette wxNullPalette;
+#endif // wxUSE_PALETTE
 wxFont    wxNullFont;
 wxColour  wxNullColour;