[comp.sys.mac.programmer] GetResource problem...

gb2a+@andrew.cmu.edu (George J. Baxter) (03/09/91)

Hiya,
    I have a function that pulls resources and slams them info in the
resources into a linked list.  A problem arose, however, when there was
a jump, in this case of just 1, of the resource ID, say from 13 to 15..
so resource 14 was missing.  According to the Inside Mac I, when I try
to read in 14, and it doesn't find it, ResError should return the error
resNotFound (-192 I think).  Well, it don't.. I get 0.  The handle does
come back NIL, so I do have a work around, but it ain't a pretty nor a
safe one.  Why aren't I getting resNotFound??
            -george
-----------------------
gb2a@andrew.cmu.edu		    baxter@a.cfr.cmu.edu

baxter@imga.cfr.cmu.edu		    q100gb2a@vb.cc.cmu.edu

"Only a Hawaiian can say Humuhumunukunukuapuaa five times fast, correctly."