X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54892273481657ae3b855cf5d40e328f38b6408c..d294c9db889143938d8164df03fef56bdc1ab45e:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 075ce5f3a9..c1b5e3e4cf 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -896,9 +896,9 @@ inline void *wxSetWindowUserData(HWND hwnd, void *data) // note that the casts to LONG_PTR here are required even on 32-bit machines // for the 64-bit warning mode of later versions of MSVC (C4311/4312) -inline void *wxGetWindowProc(HWND hwnd) +inline WNDPROC wxGetWindowProc(HWND hwnd) { - return (void *)(LONG_PTR)::GetWindowLong(hwnd, GWL_WNDPROC); + return (WNDPROC)(LONG_PTR)::GetWindowLong(hwnd, GWL_WNDPROC); } inline void *wxGetWindowUserData(HWND hwnd)