From 9a472d6a7f6f24dce5ff9a66aeed99662359ad4e Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Wed, 6 Jan 2010 21:15:59 +0000 Subject: Update to libxdg-basedir 1.0.2; adapt accordingly, and default to external. --- src/libw32dll/wine/registry.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libw32dll/wine/registry.c') diff --git a/src/libw32dll/wine/registry.c b/src/libw32dll/wine/registry.c index 20c21888d..b12974416 100644 --- a/src/libw32dll/wine/registry.c +++ b/src/libw32dll/wine/registry.c @@ -303,8 +303,9 @@ static struct reg_value* insert_reg_value(int handle, const char* name, int type static void init_registry(void) { - xdgHandle tmph = xdgAllocHandle(); - const char *const xdg_cache_home = xdgCacheHome(tmph); + xdgHandle tmph; + xdgInitHandle(&tmph); + const char *const xdg_cache_home = xdgCacheHome(&tmph); TRACE("Initializing registry\n"); // can't be free-ed - it's static and probably thread @@ -318,7 +319,7 @@ static void init_registry(void) insert_handle(HKEY_LOCAL_MACHINE, "HKLM"); insert_handle(HKEY_CURRENT_USER, "HKCU"); - xdgFreeHandle(tmph); + xdgWipeHandle(&tmph); } #if 0 -- cgit v1.2.3