* regtool.cc (find_key): Handle keys with only one subkey.

This commit is contained in:
Corinna Vinschen 2001-07-15 11:27:23 +00:00
parent fc901253d1
commit 4c61c04cd3
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2001-07-14 Chris Genly <chgenly@alum.mit.edu>
* regtool.cc (find_key): Handle keys with only one subkey.
Wed Jun 27 22:46:10 2001 Christopher Faylor <cgf@cygnus.com>
* regtool.cc (find_key): Revert previous change.

View File

@ -221,11 +221,15 @@ find_key (int howmanyparts, REGSAM access)
e--;
if (*e != '\\')
{
fprintf (stderr, "Invalid key\n");
exit (1);
key = wkprefixes[i].key;
value = n;
return;
}
else
{
*e = 0;
value = e + 1;
}
*e = 0;
value = e + 1;
}
if (n[0] == 0)
{