From: Günther Deschner Date: Wed, 2 Mar 2011 23:39:44 +0000 (+0100) Subject: s3-nterr: within nt_errstr() compare codes using NT_STATUS_V(). X-Git-Tag: tevent-0.9.11~133 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=d36777735282b7d22c7d5e21f525c4f24fd774b1 s3-nterr: within nt_errstr() compare codes using NT_STATUS_V(). This is to avoid future very special NT_STATUS_EQUAL semantics within s4. Guenther --- diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c index fdb6fe3c8b4..866c025fbba 100644 --- a/source3/libsmb/nterr.c +++ b/source3/libsmb/nterr.c @@ -699,7 +699,8 @@ const char *nt_errstr(NTSTATUS nt_code) } while (nt_errs[idx].nt_errstr != NULL) { - if (NT_STATUS_EQUAL(nt_errs[idx].nt_errcode, nt_code)) { + if (NT_STATUS_V(nt_errs[idx].nt_errcode) == + NT_STATUS_V(nt_code)) { return nt_errs[idx].nt_errstr; } idx++;