diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/winreg.c | 12 |
1 files changed, 11 insertions, 1 deletions
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; } |