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:
Vadim Zeitlin
2006-03-09 13:18:50 +00:00
parent 7fab07efba
commit 315a49a10e
2 changed files with 6 additions and 6 deletions

View File

@@ -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)