summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libw32dll/wine/registry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libw32dll/wine/registry.c b/src/libw32dll/wine/registry.c
index ed7f5e74d..d6c571cd5 100644
--- a/src/libw32dll/wine/registry.c
+++ b/src/libw32dll/wine/registry.c
@@ -302,6 +302,10 @@ static void init_registry(void)
regpathname = get_path("registry");
localregpathname = regpathname;
#else
+#ifdef XINE_MAJOR
+ localregpathname = (char *)malloc(strlen(xine_get_homedir()) + 20);
+ sprintf(localregpathname, "%s/.xine/win32registry", xine_get_homedir());
+#else
// regpathname is an external pointer
//
// registry.c is holding it's own internal pointer
@@ -323,6 +327,7 @@ static void init_registry(void)
strcat(localregpathname, "/.registry");
}
#endif
+#endif
open_registry();
insert_handle(HKEY_LOCAL_MACHINE, "HKLM");