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 <neolit123@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Lubomir I. Ivanov 2012-05-05 19:30:39 +03:00 committed by Linus Torvalds
parent fb504b50d0
commit cf475114f6

View file

@ -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)