summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-17 11:22:01 +0100
committerMichael Adam <obnox@samba.org>2008-01-17 16:25:11 +0100
commit32a8e740785147256c008730a69ae6d60a294884 (patch)
tree3fb3ea6a4206364a571b2d8abdd60488f4683731 /source3/rpc_server
parent7f8e4bc68ea727ab999c3f60927adbc8acc5a651 (diff)
downloadsamba-32a8e740785147256c008730a69ae6d60a294884.tar.gz
samba-32a8e740785147256c008730a69ae6d60a294884.tar.bz2
samba-32a8e740785147256c008730a69ae6d60a294884.zip
Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.
Michael (This used to be commit 903223b160eef6ba6ff19a8bfef19e5fe7008631)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_winreg_nt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index 939bf723d2..92c178042f 100644
--- a/source3/rpc_server/srv_winreg_nt.c
+++ b/source3/rpc_server/srv_winreg_nt.c
@@ -370,9 +370,7 @@ WERROR _winreg_GetVersion(pipes_struct *p, struct winreg_GetVersion *r)
if ( !regkey )
return WERR_BADFID;
- *r->out.version = 0x00000005; /* Windows 2000 registry API version */
-
- return WERR_OK;
+ return reg_getversion(r->out.version);
}