summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/windows.c b/windows.c
index 46b6951bd..0353adef3 100644
--- a/windows.c
+++ b/windows.c
@@ -73,10 +73,15 @@ const void *subsurface_get_conf(char *name, pref_type_t type)
return NULL;
}
-void subsurface_close_conf(void)
+void subsurface_flush_conf(void)
{
+ /* I wonder if we should even do this - it's apparently very expensive */
if (RegFlushKey(hkey) != ERROR_SUCCESS)
printf("RegFlushKey failed \n");
+}
+
+void subsurface_close_conf(void)
+{
RegCloseKey(hkey);
}