[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OpenResFile and ResError weirdness when no resource file
- To: info-mcl@cambridge.apple.com
- Subject: OpenResFile and ResError weirdness when no resource file
- From: cornell@unix1.cs.umass.edu (Matthew Cornell)
- Date: Wed, 3 Jul 91 22:06:05 EDT
In MCL2.0b1p3 I'm opening resource files for PICTs and I stumbled upon
this situation (see the code below): There is no file named "foo" so
OpenResFile returns the -1 failure code as expected, but ResError
returns the noErr code! I expected it to return resFNotFound or
something useful. I will be grateful for an explanation.
matt
? (with-pstrs ((file-name-ptr "foo"))
(#_OpenResFile file-name-ptr))
-1
? (#_ResError)
0
?