summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-10 14:17:23 +0100
committerGünther Deschner <gd@samba.org>2010-03-10 16:12:22 +0100
commitc5ba525748fdab6b182e35673983719b7c235127 (patch)
treeefd463b874c6975ce15458eb94c44357c14e00ba
parent52ca26a820ab0688800a88038b656c2def83aeb6 (diff)
downloadsamba-c5ba525748fdab6b182e35673983719b7c235127.tar.gz
samba-c5ba525748fdab6b182e35673983719b7c235127.tar.bz2
samba-c5ba525748fdab6b182e35673983719b7c235127.zip
s3-winreg: add some debug statements to _winreg_QueryValue().
Guenther
-rw-r--r--source3/rpc_server/srv_winreg_nt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index dcfe2b931a..15c79bea46 100644
--- a/source3/rpc_server/srv_winreg_nt.c
+++ b/source3/rpc_server/srv_winreg_nt.c
@@ -236,8 +236,8 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct winreg_QueryValue *r)
*r->out.data_length = *r->out.type = REG_NONE;
- DEBUG(7,("_reg_info: policy key name = [%s]\n", regkey->key->name));
- DEBUG(7,("_reg_info: policy key type = [%08x]\n", regkey->key->type));
+ DEBUG(7,("_winreg_QueryValue: policy key name = [%s]\n", regkey->key->name));
+ DEBUG(7,("_winreg_QueryValue: policy key type = [%08x]\n", regkey->key->type));
/* Handle QueryValue calls on HKEY_PERFORMANCE_DATA */
if(regkey->key->type == REG_KEY_HKPD)
@@ -287,6 +287,10 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct winreg_QueryValue *r)
status = reg_queryvalue(p->mem_ctx, regkey, r->in.value_name->name,
&val);
if (!W_ERROR_IS_OK(status)) {
+
+ DEBUG(10,("_winreg_QueryValue: reg_queryvalue failed with: %s\n",
+ win_errstr(status)));
+
if (r->out.data_size) {
*r->out.data_size = 0;
}