[PATCH] set subsurface_flush_conf() to no-op in wondows.c

Lubomir I. Ivanov neolit123 at gmail.com
Sat May 5 09:30:39 PDT 2012


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

flushing the entire registry is not required on windows. simply
closing the registry key when done would suffice.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 windows.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/windows.c b/windows.c
index 0353ade..29ef612 100644
--- a/windows.c
+++ b/windows.c
@@ -75,9 +75,7 @@ const void *subsurface_get_conf(char *name, pref_type_t type)
 
 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");
+	/* this is a no-op */
 }
 
 void subsurface_close_conf(void)
-- 
1.7.6.msysgit.0



More information about the subsurface mailing list