mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r9410: - a winreg_CloseKey() should return a zero key on success (zeroing the
callers key). This is the normal pattern with rpc handles.
- fixed reference to undefined error variable in winreg_DeleteKey()
(This used to be commit 6757d51a28
)
This commit is contained in:
parent
fd74e3e1f5
commit
d5edfef325
@ -85,6 +85,8 @@ static WERROR winreg_CloseKey(struct dcesrv_call_state *dce_call, TALLOC_CTX *me
|
||||
|
||||
talloc_free(h);
|
||||
|
||||
ZERO_STRUCTP(r->out.handle);
|
||||
|
||||
return WERR_OK;
|
||||
}
|
||||
|
||||
@ -123,15 +125,10 @@ static WERROR winreg_DeleteKey(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
|
||||
struct winreg_DeleteKey *r)
|
||||
{
|
||||
struct dcesrv_handle *h;
|
||||
WERROR result;
|
||||
|
||||
DCESRV_PULL_HANDLE_FAULT(h, r->in.handle, HTYPE_REGKEY);
|
||||
|
||||
if (W_ERROR_IS_OK(result)) {
|
||||
return reg_key_del((struct registry_key *)h->data, r->in.key.name);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
return reg_key_del((struct registry_key *)h->data, r->in.key.name);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user