diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-04-11 23:16:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:13 -0500 |
commit | 639afabf404d469638bc521b8a7f37e541ccf834 (patch) | |
tree | 1523a34bd54bb1d7ed48fbcb20554c572eb64433 /source4/torture | |
parent | c60c5ebb910a77f6f3f345093794637714eb66e2 (diff) | |
download | samba-639afabf404d469638bc521b8a7f37e541ccf834.tar.gz samba-639afabf404d469638bc521b8a7f37e541ccf834.tar.bz2 samba-639afabf404d469638bc521b8a7f37e541ccf834.zip |
r168: - Cleanups in rpc backend
- Small fixess in nt4 and dir backends
- Start on w95 file backend
(This used to be commit aa739e8d3c7108f6f2089af2d8d522feacc7f698)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/winreg.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index 42326b1468..3864de6503 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -493,6 +493,11 @@ static BOOL test_Open(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, void *fn) ret = False; } + if (!test_FlushKey(p, mem_ctx, &handle)) { + printf("FlushKey failed\n"); + ret = False; + } + if (!test_OpenKey(p, mem_ctx, &handle, "spottyfoot", &newhandle)) { printf("CreateKey failed (OpenKey after Create didn't work)\n"); ret = False; @@ -503,6 +508,11 @@ static BOOL test_Open(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, void *fn) ret = False; } + if (!test_FlushKey(p, mem_ctx, &handle)) { + printf("FlushKey failed\n"); + ret = False; + } + if (test_OpenKey(p, mem_ctx, &handle, "spottyfoot", &newhandle)) { printf("DeleteKey failed (OpenKey after Delete didn't work)\n"); ret = False; @@ -513,12 +523,6 @@ static BOOL test_Open(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, void *fn) ret = False; } - if (!test_FlushKey(p, mem_ctx, &handle)) { - printf("FlushKey failed\n"); - ret = False; - } - - /* The HKCR hive has a very large fanout */ if (open_fn == test_OpenHKCR) { |