From 66790e49a237460b0d4862c9f4f64ce8e551f37f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 28 Oct 2004 21:24:29 +0000 Subject: r3332: Check result codes in some more places... (This used to be commit 87833cc75852bfe198c73ba1be67d1d36a43dc99) --- source4/torture/rpc/winreg.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index 139da7f574..3fdb546a09 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -126,6 +126,11 @@ static BOOL test_FlushKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } + if (!W_ERROR_IS_OK(r.out.result)) { + printf("FlushKey failed - %s\n", win_errstr(r.out.result)); + return False; + } + return True; } @@ -257,7 +262,7 @@ static BOOL test_EnumKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, r.in.enum_index++; - } while (W_ERROR_IS_OK(r.out.result)); + } while (NT_STATUS_IS_OK(status) && W_ERROR_IS_OK(r.out.result)); return True; } @@ -330,6 +335,11 @@ static BOOL test_OpenHKLM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } + if (!W_ERROR_IS_OK(r.out.result)) { + printf("OpenHKLM failed - %s\n", win_errstr(r.out.result)); + return False; + } + return ret; } -- cgit