]> git.tdb.fi Git - ext/subsurface.git/blobdiff - windows.c
Don't close config file when changing preferences
[ext/subsurface.git] / windows.c
index 46b6951bd87bd8c7a9d6ad43020b994d557d263d..0353adef3692625cdb077b8fe8e25de126afcd59 100644 (file)
--- 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);
 }