diff --git a/direct/src/plugin/p3dWinSplashWindow.cxx b/direct/src/plugin/p3dWinSplashWindow.cxx index 359b63f4ea..dd3f79662a 100755 --- a/direct/src/plugin/p3dWinSplashWindow.cxx +++ b/direct/src/plugin/p3dWinSplashWindow.cxx @@ -237,7 +237,7 @@ register_window_class() { WNDCLASS wc; ZeroMemory(&wc, sizeof(WNDCLASS)); - wc.lpfnWndProc = st_window_proc; + wc.lpfnWndProc = (WNDPROC)st_window_proc; wc.hInstance = application; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.lpszClassName = "panda3d_splash";