1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

r25807: Close handle during winreg test.

Guenther
(This used to be commit ca53f1fb5d7be9de92b9c573da477be599904843)
This commit is contained in:
Günther Deschner 2007-11-02 14:18:07 +01:00 committed by Stefan Metzmacher
parent ecbc2cdd7a
commit 36b10da94a

View File

@ -713,6 +713,10 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
torture_fail(tctx, torture_fail(tctx,
"CreateKey failed (OpenKey after Create didn't work)\n"); "CreateKey failed (OpenKey after Create didn't work)\n");
if (created && !test_CloseKey(p, tctx, &newhandle))
torture_fail(tctx,
"CreateKey failed (CloseKey after Open didn't work)\n");
if (created && !test_DeleteKey(p, tctx, &handle, TEST_KEY1)) { if (created && !test_DeleteKey(p, tctx, &handle, TEST_KEY1)) {
torture_comment(tctx, "DeleteKey failed\n"); torture_comment(tctx, "DeleteKey failed\n");
ret = false; ret = false;