From 2ec94d6b9676246277d93f1d4f0e1a2a58115376 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 17 Feb 2009 09:57:10 +0000 Subject: [PATCH] add missing stdcall to fix crash when using state image lists after r58572 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/treectrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 270f2a6fc5..88a0016e3e 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -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; -- 2.45.2