From f5f18f2d1821c0edb4486c32555ed4a56daf6920 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 23 Aug 2005 02:00:43 +0000 Subject: r9498: converted the SWAT regedit backend code to use the OO calls (This used to be commit c22baee5aafb2937ddfb71942eef5c69544e823c) --- swat/scripting/server/regedit.esp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'swat') diff --git a/swat/scripting/server/regedit.esp b/swat/scripting/server/regedit.esp index a13ad8afe5..58ba695c47 100644 --- a/swat/scripting/server/regedit.esp +++ b/swat/scripting/server/regedit.esp @@ -12,8 +12,7 @@ libinclude("server_call.js"); */ function enum_keys(binding, path) { printf("enum_keys(%s, %s)\n", binding, path); - var reg = winreg_init(); - security_init(reg); + var reg = winregObj(); reg.credentials = session.authinfo.credentials; @@ -22,7 +21,7 @@ function enum_keys(binding, path) { printVars(status); return undefined; } - return winreg_enum_path(reg, path); + return reg.enum_path(path); } /* @@ -30,8 +29,7 @@ function enum_keys(binding, path) { */ function enum_values(binding, path) { printf("enum_values(%s, %s)\n", binding, path); - var reg = winreg_init(); - security_init(reg); + var reg = winregObj(); reg.credentials = session.authinfo.credentials; @@ -40,7 +38,7 @@ function enum_values(binding, path) { printVars(status); return undefined; } - return winreg_enum_values(reg, path); + return reg.enum_values(path); } /* register a call for clients to make */ -- cgit