diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-12-10 23:20:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:30 -0500 |
commit | eda727b8652846c9bdf2297400e43787ed53ea49 (patch) | |
tree | 65773266132a39dbc15e969ad84236c9c7a8c5f0 /source4/torture/rpc/winreg.c | |
parent | 0bde7a2944fded24af8a9b19a3bb42015bbdd6bb (diff) | |
download | samba-eda727b8652846c9bdf2297400e43787ed53ea49.tar.gz samba-eda727b8652846c9bdf2297400e43787ed53ea49.tar.bz2 samba-eda727b8652846c9bdf2297400e43787ed53ea49.zip |
r4142: Check result value of OpenHKU and OpenHKCR
(This used to be commit bba4e878b4a93e67e02b8f1332b0889947ec1a11)
Diffstat (limited to 'source4/torture/rpc/winreg.c')
-rw-r--r-- | source4/torture/rpc/winreg.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |