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