summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-05-05 19:30:39 +0300
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-05-05 10:00:10 -0700
commitcf475114f6fc1720444fcc1da66cf664b018c3f4 (patch)
tree28614a6e0b50838fa6183a3cddde3c9fda379a86 /windows.c
parentfb504b50d0f2b881d2be6dcc657f74cca663d217 (diff)
downloadsubsurface-cf475114f6fc1720444fcc1da66cf664b018c3f4.tar.gz
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>
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/windows.c b/windows.c
index 0353adef3..29ef6122e 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)