]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/fdrepdlg.cpp
fixed several crashes in XPM parsing code
[wxWidgets.git] / src / msw / fdrepdlg.cpp
index f7c9f27d0c8c12985c9d80ec2fc79e53a30fb354..27711a8dc0d08a8d047f0cc4d06b898dd6bc5bf7 100644 (file)
@@ -190,7 +190,8 @@ void wxFindReplaceDialogImpl::SubclassDialog(HWND hwnd)
 
     // check that we don't subclass the parent twice: this would be a bad idea
     // as then we'd have infinite recursion in wxFindReplaceWindowProc
-    wxCHECK_RET( wxGetWindowProc(hwnd) != wxFindReplaceWindowProc,
+    wxCHECK_RET( wxGetWindowProc(hwnd) !=
+                        wx_reinterpret_cast(void *, wxFindReplaceWindowProc),
                  _T("can't have more than one find dialog currently") );
 
     // set the new one and save the old as user data to allow access to it