]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/cursor.cpp
Check for NULL before dereferencing
[wxWidgets.git] / src / msw / cursor.cpp
index ffa2a6434cfe35520979fa7634b310770e8cf432..31d0f4e86d43ecf8b188c1a31a5789f23fdd8c8a 100644 (file)
@@ -376,7 +376,8 @@ wxCursor::wxCursor(int cursor_type)
     case wxCURSOR_QUESTION_ARROW:
     {
 //      refData->m_hCursor = (WXHCURSOR) LoadImage(wxGetInstance(), wxT("wxCURSOR_QARROW"), IMAGE_CURSOR, 16, 16, LR_MONOCHROME);
     case wxCURSOR_QUESTION_ARROW:
     {
 //      refData->m_hCursor = (WXHCURSOR) LoadImage(wxGetInstance(), wxT("wxCURSOR_QARROW"), IMAGE_CURSOR, 16, 16, LR_MONOCHROME);
-      refData->m_hCursor = (WXHCURSOR) LoadCursor(wxGetInstance(), wxT("wxCURSOR_QARROW"));
+//      refData->m_hCursor = (WXHCURSOR) LoadCursor(wxGetInstance(), wxT("wxCURSOR_QARROW"));
+      refData->m_hCursor = (WXHCURSOR) LoadCursor((HINSTANCE) NULL, IDC_HELP);
       break;
     }
     case wxCURSOR_BLANK:
       break;
     }
     case wxCURSOR_BLANK: