From 9af400f988b06e43f37167733d0404b66d0f4a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 3 Sep 2013 19:58:51 +0200 Subject: Additional k => tde renaming and fixes --- ltdl_win.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ltdl_win.c b/ltdl_win.c index a7fae0d..0027cbd 100644 --- a/ltdl_win.c +++ b/ltdl_win.c @@ -62,7 +62,7 @@ void win32_mapSo2Dll( char *path ) } #define MAX_PATH 0x1ff -static char win32_mapDir_KDEDIR[MAX_PATH] = ""; +static char win32_mapDir_TDEDIR[MAX_PATH] = ""; // paths name mappings // when mapping is performed, frees old name at *dir and allocates new path for *dir @@ -72,19 +72,19 @@ void win32_mapDir( char **dir ) static const char* WIN32_LIBDIR_TO = "c:/kde/lib/trinity"; char *e; //TODO........ - if (!*win32_mapDir_KDEDIR) { - e = getenv("KDEDIR"); + if (!*win32_mapDir_TDEDIR) { + e = getenv("TDEDIR"); if (e) - strncpy( win32_mapDir_KDEDIR, e, MAX_PATH ); + strncpy( win32_mapDir_TDEDIR, e, MAX_PATH ); } - assert(dir && *dir && win32_mapDir_KDEDIR && *win32_mapDir_KDEDIR); + assert(dir && *dir && win32_mapDir_TDEDIR && *win32_mapDir_TDEDIR); // /opt/trinity/lib/trinity -> :/kde/lib/trinity if (strcmp(*dir, WIN32_LIBDIR_FROM)==0) { free(*dir); *dir=strdup(WIN32_LIBDIR_TO); - if (win32_mapDir_KDEDIR && *win32_mapDir_KDEDIR) { - (*dir)[0]=win32_mapDir_KDEDIR[0]; //copy drive letter + if (win32_mapDir_TDEDIR && *win32_mapDir_TDEDIR) { + (*dir)[0]=win32_mapDir_TDEDIR[0]; //copy drive letter } } } -- cgit v1.2.1