comparison src/video/windib/SDL_dibevents.c @ 721:ab0656314eef

Date: Thu, 18 Sep 2003 14:24:35 -0400 From: Scott Watson Subject: [SDL] Improper Windows message routine calling If this hasn't been caught yet, there's an improper method of calling a user's window message routine in the various SDL_xxevents.c files. Calling it improperly can cause a crash under at least XP.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 21 Sep 2003 18:40:51 +0000
parents 4c740ee76027
children 5429a06aa816
comparison
equal deleted inserted replaced
720:f90d80d68071 721:ab0656314eef
175 /* DJM: If the user isn't watching for private 175 /* DJM: If the user isn't watching for private
176 messages in her SDL event loop, then pass it 176 messages in her SDL event loop, then pass it
177 along to any win32 specific window proc. 177 along to any win32 specific window proc.
178 */ 178 */
179 } else if (userWindowProc) { 179 } else if (userWindowProc) {
180 return userWindowProc(hwnd, msg, wParam, lParam); 180 return CallWindowProc(userWindowProc, hwnd, msg, wParam, lParam);
181 } 181 }
182 } 182 }
183 break; 183 break;
184 } 184 }
185 return(DefWindowProc(hwnd, msg, wParam, lParam)); 185 return(DefWindowProc(hwnd, msg, wParam, lParam));