fix gcc4 warning for wndproc casts (patch 1431939)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user