]> git.saurik.com Git - wxWidgets.git/commitdiff
add missing stdcall to fix crash when using state image lists after r58572
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Feb 2009 09:57:10 +0000 (09:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Feb 2009 09:57:10 +0000 (09:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index 270f2a6fc5b22b44a6e9e618ecef055e9aec2d78..88a0016e3efc23243036bbc426336308c6da7331 100644 (file)
@@ -2706,7 +2706,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                         // delete it (in POSTPAINT notify)
                         if (m_imageListState && m_imageListState->GetImageCount() > 0)
                         {
-                            typedef BOOL (*ImageList_Copy_t)
+                            typedef BOOL (wxSTDCALL *ImageList_Copy_t)
                                 (HIMAGELIST, int, HIMAGELIST, int, UINT);
                             static ImageList_Copy_t s_pfnImageList_Copy = NULL;
                             static bool loaded = false;