From: Lubomir I. Ivanov Date: Sat, 5 May 2012 16:30:39 +0000 (+0300) Subject: set subsurface_flush_conf() to no-op in wondows.c X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cf475114f6fc1720444fcc1da66cf664b018c3f4;p=ext%2Fsubsurface.git 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 --- 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)