]> git.tdb.fi Git - ext/subsurface.git/commitdiff
set subsurface_flush_conf() to no-op in wondows.c
authorLubomir I. Ivanov <neolit123@gmail.com>
Sat, 5 May 2012 16:30:39 +0000 (19:30 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 5 May 2012 17:00:10 +0000 (10:00 -0700)
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@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
windows.c

index 0353adef3692625cdb077b8fe8e25de126afcd59..29ef6122e50044a160640d22da81df053ebe22d9 100644 (file)
--- 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)