diff options
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 e1eb4e08a..6068f3a3d 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) { |