From d36777735282b7d22c7d5e21f525c4f24fd774b1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 3 Mar 2011 00:39:44 +0100 Subject: 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 --- source3/libsmb/nterr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c index fdb6fe3c8b..866c025fbb 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++; -- cgit