diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-07-15 11:27:23 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-07-15 11:27:23 +0000 |
commit | 4c61c04cd3c90b51a941d7eb3c7a3caf56ba00a5 (patch) | |
tree | e6df89e4a616a5c95d998eaa57bac9953b85200a /winsup/utils/regtool.cc | |
parent | fc901253d174dcbf1468114041086e5090cba629 (diff) | |
download | newlib-4c61c04cd3c90b51a941d7eb3c7a3caf56ba00a5.zip newlib-4c61c04cd3c90b51a941d7eb3c7a3caf56ba00a5.tar.gz newlib-4c61c04cd3c90b51a941d7eb3c7a3caf56ba00a5.tar.bz2 |
* regtool.cc (find_key): Handle keys with only one subkey.
Diffstat (limited to 'winsup/utils/regtool.cc')
-rw-r--r-- | winsup/utils/regtool.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/winsup/utils/regtool.cc b/winsup/utils/regtool.cc index e1eb4e0..6068f3a 100644 --- a/winsup/utils/regtool.cc +++ b/winsup/utils/regtool.cc @@ -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) { |