1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r15794: fixed a problem with DOS status codes - found by kukks (thanks!)

(This used to be commit 1a57b16715)
This commit is contained in:
Andrew Tridgell 2006-05-22 02:07:11 +00:00 committed by Gerald (Jerry) Carter
parent d51f4fb2c7
commit 79183f68fc

View File

@ -1198,6 +1198,11 @@ void ntstatus_to_dos(NTSTATUS ntstatus, uint8_t *eclass, uint32_t *ecode)
*ecode = 0;
return;
}
if (NT_STATUS_IS_DOS(ntstatus)) {
*eclass = NT_STATUS_DOS_CLASS(ntstatus);
*ecode = NT_STATUS_DOS_CODE(ntstatus);
return;
}
for (i=0; NT_STATUS_V(ntstatus_to_dos_map[i].ntstatus); i++) {
if (NT_STATUS_V(ntstatus) ==
NT_STATUS_V(ntstatus_to_dos_map[i].ntstatus)) {