]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/cursor.cpp
Added ShowFullScreen
[wxWidgets.git] / src / msw / cursor.cpp
index 4cea893b6b277315d9e0b945b0585d509e963373..e914dff561f34c9f134cba6ed08ab95e866198b7 100644 (file)
@@ -49,9 +49,7 @@
 // wxWin macros
 // ----------------------------------------------------------------------------
 
-#if !USE_SHARED_LIBRARIES
     IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxCursorBase)
-#endif
 
 // ----------------------------------------------------------------------------
 // wxCursorRefData
@@ -67,8 +65,13 @@ wxCursorRefData::wxCursorRefData()
 
 void wxCursorRefData::Free()
 {
-    if ( m_hCursor && m_destroyCursor )
-        ::DestroyCursor((HCURSOR)m_hCursor);
+    if ( m_hCursor )
+    {
+        if ( m_destroyCursor )
+            ::DestroyCursor((HCURSOR)m_hCursor);
+
+        m_hCursor = 0;
+    }
 }
 
 // ----------------------------------------------------------------------------