From eda727b8652846c9bdf2297400e43787ed53ea49 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 10 Dec 2004 23:20:24 +0000 Subject: r4142: Check result value of OpenHKU and OpenHKCR (This used to be commit bba4e878b4a93e67e02b8f1332b0889947ec1a11) --- source4/torture/rpc/winreg.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/torture/rpc/winreg.c') diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index 8f3e543fb5..be1ca03b6f 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -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; } -- cgit