Article View: comp.sys.ibm.pc.programmer
Article #770Bug in QC25/SAMPLES/MOUSE.C
From: Chris G. Sylvain
Date: Sat, 16 Jun 1990 15:54
Date: Sat, 16 Jun 1990 15:54
14 lines
948 bytes
948 bytes
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 --
Technical Details
Message-ID:
<6678@umd5.umd.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bellcore!rutgers!cs.utexas.edu!uunet!aplcen!haven!umd5!cgsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bellcore!rutgers!cs.utexas.edu!uunet!aplcen!haven!umd5!cgs
From: cgs@umd5.umd.edu (Chris G. Sylvain)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Bug in QC25/SAMPLES/MOUSE.C
Keywords: _asm{ ret }
Message-ID: <6678@umd5.umd.edu>
Date: 16 Jun 90 15:54:45 GMT
Organization: University of Maryland, College Park
Lines: 14