meterp reg enumkey fix

git-svn-id: file:///home/svn/incoming/trunk@3091 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-11-24 20:54:43 +00:00
parent ca149ac9fa
commit 809619acf1
2 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,11 @@ class Registry
# create_key.
#
def Registry.open_key(root_key, base_key, perm = KEY_READ)
# If no base key was provided, just return the root_key.
if (base_key == nil or base_key.length == 0)
return RegistrySubsystem::RegistryKey.new(client, root_key, base_key, perm, root_key)
end
return self.create_key(root_key, base_key, perm)
end
@ -249,7 +254,7 @@ class Registry
if (str =~ /^(.+?)\\(.*)$/)
[ key2str($1), $2 ]
else
raise ArgumentError, "Invalid key: #{key}"
[ key2str(str), nil ]
end
end

View File

@ -240,7 +240,7 @@ class Console::CommandDispatcher::Stdapi::Sys
when "-d"
data = val
end
}
}
# All commands require a key.
if (key == nil)