Update the queued event wmmsg pointer to point to the queued event data.
authorSam Lantinga <slouken@libsdl.org>
Tue, 11 Jun 2013 08:32:55 -0700
changeset 7305 d918643aee17
parent 7304 9598cbf46957
child 7306 1516fe08e6ec
Update the queued event wmmsg pointer to point to the queued event data.
src/events/SDL_events.c
--- a/src/events/SDL_events.c	Mon Jun 10 23:24:02 2013 -0700
+++ b/src/events/SDL_events.c	Tue Jun 11 08:32:55 2013 -0700
@@ -206,6 +206,7 @@
     entry->event = *event;
     if (event->type == SDL_SYSWMEVENT) {
         entry->msg = *event->syswm.msg;
+        entry->event.syswm.msg = &entry->msg;
     }
 
     if (SDL_EventQ.tail) {