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>
This commit is contained in:
parent
dc054fefc5
commit
286fa9bf9b
|
@ -629,9 +629,11 @@ winWindowsWMExtensionInit (void)
|
||||||
NULL,
|
NULL,
|
||||||
StandardMinorOpcode)))
|
StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
|
size_t i;
|
||||||
WMReqCode = (unsigned char)extEntry->base;
|
WMReqCode = (unsigned char)extEntry->base;
|
||||||
WMErrorBase = extEntry->errorBase;
|
WMErrorBase = extEntry->errorBase;
|
||||||
WMEventBase = extEntry->eventBase;
|
WMEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
|
for (i=0; i < WindowsWMNumberEvents; i++)
|
||||||
|
EventSwapVector[WMEventBase + i] = (EventSwapPtr) SNotifyEvent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user