diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-25 23:53:43 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-28 18:31:15 -0700 |
commit | a1d638da0d12c82c944bfecb996903210879f426 (patch) | |
tree | 8fe119b224d7bc9c52e378b76bf775a731fc48c7 | |
parent | 0715469f1cb150261b51867df75892d26916ea05 (diff) |
XWin: windowswm: Correct byte swapping in event notifications
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.c | 4 |
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; } } |