From 6199e30512eb676f4bafdce55c17c37d9b64eab7 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 5 Feb 2012 09:41:25 +0000 Subject: [PATCH] Eina: use new Evil API to detect absolute path name SVN revision: 67702 --- legacy/eina/src/lib/eina_prefix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/eina/src/lib/eina_prefix.c b/legacy/eina/src/lib/eina_prefix.c index c830def34f..2322311600 100644 --- a/legacy/eina/src/lib/eina_prefix.c +++ b/legacy/eina/src/lib/eina_prefix.c @@ -237,7 +237,7 @@ _try_argv(Eina_Prefix *pfx, const char *argv0) DBG("Try argv0 = %s", argv0); /* 1. is argv0 abs path? */ #ifdef _WIN32 - if (argv0[0] && (argv0[1] == ':')) + if (evil_path_is_absolute(argv0)) #else if (argv0[0] == DSEP_C) #endif @@ -533,7 +533,7 @@ eina_prefix_new(const char *argv0, void *symbol, const char *envprefix, { DBG("Dlinfo dli_fname = %s", info_dl.dli_fname); # ifdef _WIN32 - if (info_dl.dli_fname[0] && (info_dl.dli_fname[1] == ':')) + if (evil_path_is_absolute(info_dl.dli_fname)) # else if (info_dl.dli_fname[0] == DSEP_C) # endif