mirror of
https://github.com/ksherlock/afp.git
synced 2024-12-27 08:31:11 +00:00
don't remap errors > ELAST to EIO (should display via number w/o name)
This commit is contained in:
parent
92070e2e65
commit
f635d32e00
@ -10,7 +10,11 @@ int remap_os_error(unsigned long e) {
|
|||||||
|
|
||||||
switch(e) {
|
switch(e) {
|
||||||
case NO_ERROR: return 0;
|
case NO_ERROR: return 0;
|
||||||
default: return EIO;
|
default:
|
||||||
|
#ifdef ELAST
|
||||||
|
if (e > ELAST) return e;
|
||||||
|
#endif
|
||||||
|
return EIO;
|
||||||
|
|
||||||
case ERROR_INVALID_HANDLE:
|
case ERROR_INVALID_HANDLE:
|
||||||
return EBADF;
|
return EBADF;
|
||||||
@ -24,7 +28,6 @@ int remap_os_error(unsigned long e) {
|
|||||||
case ERROR_WRITE_FAULT:
|
case ERROR_WRITE_FAULT:
|
||||||
return EIO;
|
return EIO;
|
||||||
|
|
||||||
|
|
||||||
case ERROR_ACCESS_DENIED:
|
case ERROR_ACCESS_DENIED:
|
||||||
case ERROR_CANNOT_MAKE:
|
case ERROR_CANNOT_MAKE:
|
||||||
case ERROR_CURRENT_DIRECTORY:
|
case ERROR_CURRENT_DIRECTORY:
|
||||||
|
Loading…
Reference in New Issue
Block a user