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:
parent
d51f4fb2c7
commit
79183f68fc
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user