[comp.sys.ibm.pc.programmer] Bug in QC25/SAMPLES/MOUSE.C

cgs@umd5.umd.edu (Chris G. Sylvain) (06/16/90)

Has anyone else noticed the bug in MouseInit(), which is supplied as part
of MOUSE.C ?

The bare _asm{ ret } when the mouse is not available is NOT the way to
return( 0 ); without trashing the program stack.

If the code is changed to split the _asm block and use a return() instead,
then it works fine. I guess everyone at Microsoft has a mouse ?
-- 
--==---==---==--
Outgrabe: Like a bellowing and whistling, with a kind sneeze in the middle
--   ARPA: cgs@umd5.UMD.EDU     BITNET: cgs%umd5@umd2   --
--   UUCP: ..!uunet!umd5.umd.edu!cgs                    --