r4142: Check result value of OpenHKU and OpenHKCR
authorJelmer Vernooij <jelmer@samba.org>
Fri, 10 Dec 2004 23:20:24 +0000 (23:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:30 +0000 (13:06 -0500)
(This used to be commit bba4e878b4a93e67e02b8f1332b0889947ec1a11)

source4/torture/rpc/winreg.c

index 8f3e543fb59bd3b6c0c2a5cbe29ee4adf9decb34..be1ca03b6fbbb7b187867c6222571afb41afa5a7 100644 (file)
@@ -416,6 +416,11 @@ static BOOL test_OpenHKU(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
                return False;
        }
 
+       if (!W_ERROR_IS_OK(r.out.result)) {
+               printf("OpenHKU failed - %s\n", win_errstr(r.out.result));
+               return False;
+       }
+
        return ret;
 }
 
@@ -442,6 +447,10 @@ static BOOL test_OpenHKCR(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
                return False;
        }
 
+       if (!W_ERROR_IS_OK(r.out.result)) {
+               printf("OpenHKU failed - %s\n", win_errstr(r.out.result));
+               return False;
+       }
        return ret;
 }