diff --git a/src/video/windib/SDL_dibevents.c b/src/video/windib/SDL_dibevents.c index 7e83b6b0b..1d9152227 100644 --- a/src/video/windib/SDL_dibevents.c +++ b/src/video/windib/SDL_dibevents.c @@ -177,7 +177,7 @@ LONG along to any win32 specific window proc. */ } else if (userWindowProc) { - return userWindowProc(hwnd, msg, wParam, lParam); + return CallWindowProc(userWindowProc, hwnd, msg, wParam, lParam); } } break; diff --git a/src/video/windx5/SDL_dx5events.c b/src/video/windx5/SDL_dx5events.c index 4e04735ca..22860fc32 100644 --- a/src/video/windx5/SDL_dx5events.c +++ b/src/video/windx5/SDL_dx5events.c @@ -537,13 +537,13 @@ LONG wmmsg.lParam = lParam; posted = SDL_PrivateSysWMEvent(&wmmsg); - /* DJM: If the user isn't watching for private messages in her - SDL event loop, then pass it along to any win32 specific - window proc. - */ - } else if (userWindowProc) { - return userWindowProc(hwnd, msg, wParam, lParam); - } + /* DJM: If the user isn't watching for private + messages in her SDL event loop, then pass it + along to any win32 specific window proc. + */ + } else if (userWindowProc) { + return CallWindowProc(userWindowProc, hwnd, msg, wParam, lParam); + } } break; }