windows-error-codes-20051018

handle the CM_ERROR_ALLDOWN case when translating cm errors to nt status
This commit is contained in:
Jeffrey Altman 2005-10-18 16:29:59 +00:00
parent d16fb72074
commit 5cd3d016fd

View File

@ -2452,7 +2452,7 @@ void smb_MapNTError(long code, unsigned long *NTStatusp)
else if (code == CM_ERROR_ALLBUSY) {
NTStatus = 0xC00000BFL; /* Network Busy */
}
else if (code == CM_ERROR_ALLOFFLINE) {
else if (code == CM_ERROR_ALLOFFLINE || code == CM_ERROR_ALLDOWN) {
NTStatus = 0xC0000350L; /* Remote Host Down */
}
#else
@ -2460,7 +2460,8 @@ void smb_MapNTError(long code, unsigned long *NTStatusp)
* the AFS Client Service is busy or down.
*/
else if (code == CM_ERROR_ALLBUSY ||
code == CM_ERROR_ALLOFFLINE) {
code == CM_ERROR_ALLOFFLINE ||
code == CM_ERROR_ALLDOWN) {
NTStatus = 0xC00000BEL; /* Bad Network Path */
}
#endif