X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=windows.c;h=0353adef3692625cdb077b8fe8e25de126afcd59;hb=fb504b50d0f2b881d2be6dcc657f74cca663d217;hp=46b6951bd87bd8c7a9d6ad43020b994d557d263d;hpb=513df18f50afc13fcef9f2421b5a33b772eed380;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); }