[net.micro.mac] LightSpeed C SetEventMask bug

paul@fcstools.UUCP (Paul Perkins) (07/06/86)

Beware SetEventMask function in LightSpeed C 1.02.
The code for SetEventMask pops a longword from the stack
into the SysEvtMask low-memory global at 0x144.
Since SysEvtMask is a word, not a longword, this
clobbers whatever follows it, which makes the system
freeze or crash, not right away, but eventually.
I think it may screw up the stack for the calling
function too (Pascal calling sequence), but that
hardly matters.  The work around is to assign to
SysEvtMask (defined in EventMgr.h) instead of calling
SetEventMask.

- Paul Perkins