Eina: use new Evil API to detect absolute path name
SVN revision: 67702
This commit is contained in:
parent
76057ccbe8
commit
6199e30512
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue