X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51d5ec540813b54e5590cc473b0252d51754e152..68d31398dd70c5c9ba7c8cc1a21bcf08eeba78f6:/src/msw/cursor.cpp diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index bf69c83f6d..221c3a3bf6 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -155,8 +155,10 @@ void wxCursorRefData::Free() { if ( m_hCursor ) { +#ifndef __WXWINCE__ if ( m_destroyCursor ) ::DestroyCursor((HCURSOR)m_hCursor); +#endif m_hCursor = 0; } @@ -235,9 +237,11 @@ wxCursor::wxCursor(const wxString& filename, hcursor = ::LoadCursor(wxGetInstance(), filename); break; +#ifndef __WXWINCE__ case wxBITMAP_TYPE_CUR: hcursor = ::LoadCursorFromFile(filename); break; +#endif case wxBITMAP_TYPE_ICO: hcursor = wxBitmapToHCURSOR