Skip to content

Commit

Permalink
Date: Thu, 18 Sep 2003 14:24:35 -0400
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Sep 21, 2003
1 parent 0662628 commit 0bf5e93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/video/windib/SDL_dibevents.c
Expand Up @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions src/video/windx5/SDL_dx5events.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0bf5e93

Please sign in to comment.