* regtool.cc (find_key): Handle keys with only one subkey.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user