summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/windows.c b/windows.c
index 372e03b14..aa1a797ab 100644
--- a/windows.c
+++ b/windows.c
@@ -32,6 +32,16 @@ void subsurface_open_conf(void)
printf("CreateKey Software\\subsurface failed %ld\n", success);
}
+void subsurface_unset_conf(char *name)
+{
+ wchar_t *wname;
+
+ wname = (wchar_t *)g_utf8_to_utf16(name, -1, NULL, NULL, NULL);
+ if (!wname)
+ return;
+ RegDeleteKey(hkey, (LPCWSTR)wname);
+}
+
void subsurface_set_conf(char *name, pref_type_t type, const void *value)
{
/* since we are using the pointer 'value' as both an actual