summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/winreg
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/bin/winreg')
-rwxr-xr-xsource4/scripting/bin/winreg8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/bin/winreg b/source4/scripting/bin/winreg
index 12f40f1155..ac6f9e61ba 100755
--- a/source4/scripting/bin/winreg
+++ b/source4/scripting/bin/winreg
@@ -6,9 +6,6 @@ exec smbscript "$0" ${1+"$@"}
Released under the GNU GPL v2 or later
*/
-libinclude("base.js");
-libinclude("winreg.js");
-
var options = GetOptions(ARGV,
"POPT_AUTOHELP",
"POPT_COMMON_SAMBA",
@@ -19,6 +16,9 @@ if (options == undefined) {
return -1;
}
+libinclude("base.js");
+libinclude("winreg.js");
+
if (options.ARGV.length < 1) {
println("Usage: winreg.js <BINDING> [path]");
return -1;
@@ -91,7 +91,7 @@ if (options.ARGV.length > 1) {
if (options.createkey) {
var ok = reg.create_key("HKLM\\SOFTWARE", options.createkey);
if (!ok) {
-
+ println("Failed to create key");
}
} else {
printf("Listing registry tree '%s'\n", root);