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:
Dmitry Timoshkov 2007-09-04 22:51:39 +09:00 committed by Alexandre Julliard
parent 0aec2623c5
commit 69025bafe7
2 changed files with 8 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}