summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-01-23 12:18:01 -0800
committerJeremy Allison <jra@samba.org>2012-01-23 12:18:01 -0800
commitec094bf9ac144daf3bad31e71d6bee9849e0149a (patch)
treef353badfd574aae45e2be1e5623ed95416ee2ca6 /source4/lib/registry
parentc3a7573a849bfbc88feed43f12b6bdc71300ab0a (diff)
downloadsamba-ec094bf9ac144daf3bad31e71d6bee9849e0149a.tar.gz
samba-ec094bf9ac144daf3bad31e71d6bee9849e0149a.tar.bz2
samba-ec094bf9ac144daf3bad31e71d6bee9849e0149a.zip
WERROR type variable being incorrectly checked with a NT_STATUS_IS_X
type macro.
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/tools/regtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c
index 6857940672..40570dd778 100644
--- a/source4/lib/registry/tools/regtree.c
+++ b/source4/lib/registry/tools/regtree.c
@@ -92,7 +92,7 @@ static void print_tree(unsigned int level, struct registry_key *p,
}
mem_ctx = talloc_init("sec_desc");
- if (NT_STATUS_IS_ERR(reg_get_sec_desc(mem_ctx, p, &sec_desc))) {
+ if (!W_ERROR_IS_OK(reg_get_sec_desc(mem_ctx, p, &sec_desc))) {
DEBUG(0, ("Error getting security descriptor\n"));
}
talloc_free(mem_ctx);