From 79183f68fc2bbe9094f9ab4e1bf7c5a3c8d5dd07 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 May 2006 02:07:11 +0000 Subject: r15794: fixed a problem with DOS status codes - found by kukks (thanks!) (This used to be commit 1a57b16715bf8b82e8f9118c3ab401acf081d02c) --- source4/libcli/util/errormap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4') diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c index f4feaeffc5..e6a1c0e71c 100644 --- a/source4/libcli/util/errormap.c +++ b/source4/libcli/util/errormap.c @@ -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)) { -- cgit