Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/regtool.cc')
-rw-r--r--winsup/utils/regtool.cc12
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)
{