server: Print a more informative message when file_set_error or sock_get_error can't map errno to a status code.
This commit is contained in:
parent
0aec2623c5
commit
69025bafe7
|
@ -310,7 +310,10 @@ void file_set_error(void)
|
|||
#ifdef EOVERFLOW
|
||||
case EOVERFLOW: set_error( STATUS_INVALID_PARAMETER ); break;
|
||||
#endif
|
||||
default: perror("file_set_error"); set_error( STATUS_UNSUCCESSFUL ); break;
|
||||
default:
|
||||
perror("wineserver: file_set_error() can't map error");
|
||||
set_error( STATUS_UNSUCCESSFUL );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -762,7 +762,10 @@ static int sock_get_error( int err )
|
|||
#ifdef EREMOTE
|
||||
case EREMOTE: return WSAEREMOTE;
|
||||
#endif
|
||||
default: errno=err; perror("sock_set_error"); return WSAEFAULT;
|
||||
default:
|
||||
errno = err;
|
||||
perror("wineserver: sock_get_error() can't map error");
|
||||
return WSAEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue