Folks,

I've run across an interesting bug in the FreeDOS kernel.

In order to prevent on-screen noise in the event of critical DOS errors, my DOS application hooks the critical error handler (Int24h), records the error that pops out, and always returns with AL == 3 to "fail" the operation.

However, FreeDOS is not returning from file system calls which fail with CY set to indicate a failure.

On a write-protected diskette, the file Create, Commit, and Write operations all succeed. The critical error handler is called while DOS is in the Commit and Write functions, but they return to the caller without CY set, even though the critical error handler instructed DOS to fail the call.

(The same application code has functioned correctly under MS-DOS for more than seventeen years.)

Thanks.

/Steve



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to