diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index 998ec54bce..c283ba60bb 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -208,20 +208,15 @@ wxCursor::wxCursor(const wxImage& image) HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized), hotSpotX, hotSpotY ); - -#if wxUSE_WXDIB if ( !hcursor ) { wxLogWarning(_("Failed to create cursor.")); return; } -#else - HCURSOR hcursor = 0; -#endif m_refData = new wxCursorRefData(hcursor, true /* delete it later */); } -#endif +#endif // wxUSE_IMAGE wxCursor::wxCursor(const char WXUNUSED(bits)[], int WXUNUSED(width),