* 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> Wed Jun 27 22:46:10 2001 Christopher Faylor <cgf@cygnus.com>
* regtool.cc (find_key): Revert previous change. * regtool.cc (find_key): Revert previous change.

View File

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