summaryrefslogtreecommitdiffstats
path: root/loader/registry.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-02 12:24:35 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-02 12:24:35 +0000
commit09ea65448e40133bdd6d86e15bcea163dd40d6b2 (patch)
tree256d8f4ccdf65a71ea94e2d0aff844eb92f8bc75 /loader/registry.c
parent5fe0ff0e1bfe0e972aa2d4a93f819445bbb1cb54 (diff)
downloadmpv-09ea65448e40133bdd6d86e15bcea163dd40d6b2.tar.bz2
mpv-09ea65448e40133bdd6d86e15bcea163dd40d6b2.tar.xz
Get rid of superfluous MPLAYER #define, it was always enabled and
cluttered the code. Blessed by Reimar. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23446 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/registry.c')
-rw-r--r--loader/registry.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/loader/registry.c b/loader/registry.c
index 549a9d6315..9830b368ef 100644
--- a/loader/registry.c
+++ b/loader/registry.c
@@ -306,31 +306,8 @@ static void init_registry(void)
// can't be free-ed - it's static and probably thread
// unsafe structure which is stored in glibc
-#ifdef MPLAYER
regpathname = get_path("registry");
localregpathname = regpathname;
-#else
- // regpathname is an external pointer
- //
- // registry.c is holding its own internal pointer
- // localregpathname - which is being allocate/deallocated
-
- if (localregpathname == 0)
- {
- const char* pthn = regpathname;
- if (!regpathname)
- {
- // avifile - for now reading data from user's home
- struct passwd* pwent;
- pwent = getpwuid(geteuid());
- pthn = pwent->pw_dir;
- }
-
- localregpathname = malloc(strlen(pthn)+20);
- strcpy(localregpathname, pthn);
- strcat(localregpathname, "/.registry");
- }
-#endif
open_registry();
insert_handle(HKEY_LOCAL_MACHINE, "HKLM");