1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r3332: Check result codes in some more places...

This commit is contained in:
Jelmer Vernooij 2004-10-28 21:24:29 +00:00 committed by Gerald (Jerry) Carter
parent 1d374cdeb0
commit 87833cc758

View File

@ -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;
}