aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/registry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/registry.cc')
-rw-r--r--winsup/cygwin/registry.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/registry.cc b/winsup/cygwin/registry.cc
index e443966..af543ba 100644
--- a/winsup/cygwin/registry.cc
+++ b/winsup/cygwin/registry.cc
@@ -171,6 +171,17 @@ reg_key::kill (const char *name)
return RegDeleteKeyA (key, name);
}
+/* Delete the value specified by name of current key. Returns the error code
+ from the RegDeleteValueA invocation. */
+
+int
+reg_key::killvalue (const char *name)
+{
+ if (key_is_invalid)
+ return key_is_invalid;
+ return RegDeleteValueA (key, name);
+}
+
reg_key::~reg_key ()
{
if (!key_is_invalid)