Closed Bug 18700 Opened 25 years ago Closed 25 years ago

Need to map ERROR_OPERATION_ABORTED

Categories

(NSPR :: NSPR, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

The Win32 error code ERROR_OPERATION_ABORTED is returned
when an overlapped I/O operation is canceled.  Our Win32
error mapping function _MD_win32_map_default_error() needs
to map this error code.
Status: NEW → ASSIGNED
I propose that we add the NSPR error code:
    PR_OPERATION_ABORTED_ERROR
with the default error message:
    "The I/O operation was aborted"
and map ERROR_OPERATION_ABORTED to this
error.

Alternatively, we could map ERROR_OPERATION_ABORTED
to PR_PENDING_INTERRUPTED_ERROR, but I think that
would overload the meaning of PR_PENDING_INTERRUPT_ERROR.
It is better to use PR_OPERATION_ABORTED_ERROR, rather than overload the meaning 
of interrupted error.
I checked in the patch to NSPRPUB_RELEASE_4_0_BRANCH.
A new error code, PR_OPERATION_ABORTED_ERROR, is added.
It uses the previously reserved error code value -5935.

/cvsroot/mozilla/nsprpub/pr/include/prerr.h, revision 3.4.42.1
/cvsroot/mozilla/nsprpub/pr/src/md/windows/win32_errors.c, revision 3.6.18.1
/cvsroot/mozilla/nsprpub/pr/src/misc/prerr.c, revision 3.4.58.1
/cvsroot/mozilla/nsprpub/pr/src/misc/prerr.et, revision 3.3.58.1
/cvsroot/mozilla/nsprpub/pr/src/misc/prerr.properties, revision 3.2.58.1
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: