ksherlock / mpw

Macintosh Programmer's Workshop (mpw) compatibility layer
238 stars 21 forks source link

reziigs / OS error 0 #31

Open ksherlock opened 8 years ago

ksherlock commented 8 years ago

f001 Access(00f70eac, 6400, 00f60650) open(Locale/US/General.code, 0801)

File ":Locale:US:General.rez"; Line 71; ### RezIIgs - No error (OS error 0) during open of "General.code".

It probably should have an error number.

ksherlock commented 8 years ago

The underlying issue is that open can return a C errno or a toolbox error. if it's a toolbox error, it's stored in MacOSErr and remapped and stored in errno. If it's a C errno, MacOSErr is reset to 0 (and errno is updated, of course).