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.

For example, in SDL_dx5events.c, at the end of the function
DX5_HandleMessage(),
there’s a call like this:
} else if (userWindowProc) {
return userWindowProc(hwnd, msg, wParam, lParam);
}

which should be:
} else if (userWindowProc) {
return
CallWindowProc(userWindowProc,hwnd,msg,wParam,lParam);
}

Calling it improperly can cause a crash under at least XP.

S.W.

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.

Fixed! Thanks for the heads up. :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment