From cf475114f6fc1720444fcc1da66cf664b018c3f4 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 5 May 2012 19:30:39 +0300 Subject: [PATCH] set subsurface_flush_conf() to no-op in wondows.c flushing the entire registry is not required on windows. simply closing the registry key when done would suffice. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Linus Torvalds --- windows.c | 4 +--- 1 file changed, 1 insertion(+), 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) -- 2.45.2