STABLE14-windows-error-codes-20051018

handle the CM_ERROR_ALLDOWN case when translating cm errors to nt status


(cherry picked from commit 5cd3d016fdbc6d14c6ac942b0b4e3e92a09755c5)
This commit is contained in:
Jeffrey Altman 2005-10-18 16:31:33 +00:00
parent 17d2bff03c
commit d2b95196a4

View File

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