X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=windows.c;h=0353adef3692625cdb077b8fe8e25de126afcd59;hb=725e4582d9c7174b70fe197bb27345960457549e;hp=46b6951bd87bd8c7a9d6ad43020b994d557d263d;hpb=2d1a316d848441a7d1137cb51b1ee0b8222aaa74;p=ext%2Fsubsurface.git diff --git a/windows.c b/windows.c index 46b6951..0353ade 100644 --- a/windows.c +++ b/windows.c @@ -73,10 +73,15 @@ const void *subsurface_get_conf(char *name, pref_type_t type) return NULL; } -void subsurface_close_conf(void) +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"); +} + +void subsurface_close_conf(void) +{ RegCloseKey(hkey); }