summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-25 23:53:43 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-29 00:08:55 -0700
commite3a24febc4bb84b77aea14f8d7a174e5a8614d6c (patch)
tree328c912c7ad6e574285630d8af778328e40b387b
parentfa85f7811e8bd121eb91caa5cc4fcb7d38e93c16 (diff)
XWin: windowswm: Correct byte swapping in event notificationsserver-1.10-branch
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> (cherry picked from commit 286fa9bf9b4ffb0f9dbd3f1cae46ddcb27ee9318)
-rw-r--r--hw/xwin/winwindowswm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/xwin/winwindowswm.c b/hw/xwin/winwindowswm.c
index 71384097f..f5d27e5d5 100644
--- a/hw/xwin/winwindowswm.c
+++ b/hw/xwin/winwindowswm.c
@@ -629,9 +629,11 @@ winWindowsWMExtensionInit (void)
NULL,
StandardMinorOpcode)))
{
+ size_t i;
WMReqCode = (unsigned char)extEntry->base;
WMErrorBase = extEntry->errorBase;
WMEventBase = extEntry->eventBase;
- EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
+ for (i=0; i < WindowsWMNumberEvents; i++)
+ EventSwapVector[WMEventBase + i] = (EventSwapPtr) SNotifyEvent;
}
}