diff options
| author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2010-01-06 21:15:59 +0000 |
|---|---|---|
| committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2010-01-06 21:15:59 +0000 |
| commit | 9a472d6a7f6f24dce5ff9a66aeed99662359ad4e (patch) | |
| tree | 154d4c02e7e650e748683438178a3b2bb15e4cd4 /src/libw32dll/wine | |
| parent | 8bd8e600bf475426cbcd5b8f8f89fb2d6e53ec29 (diff) | |
| download | xine-lib-9a472d6a7f6f24dce5ff9a66aeed99662359ad4e.tar.gz xine-lib-9a472d6a7f6f24dce5ff9a66aeed99662359ad4e.tar.bz2 | |
Update to libxdg-basedir 1.0.2; adapt accordingly, and default to external.
Diffstat (limited to 'src/libw32dll/wine')
| -rw-r--r-- | src/libw32dll/wine/registry.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 |
