devilhorns pushed a commit to branch master.

http://git.enlightenment.org/apps/express.git/commit/?id=4a3376013addb5f16b0d5d5b76759dba80d90391

commit 4a3376013addb5f16b0d5d5b76759dba80d90391
Author: Vincent Torri <vincent.to...@gmail.com>
Date:   Fri Aug 14 10:29:50 2015 +0200

    express: Use Evil API to check if a file is relative or not on Windows
---
 src/bin/utils.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/utils.c b/src/bin/utils.c
index 24fb308..8bfff27 100644
--- a/src/bin/utils.c
+++ b/src/bin/utils.c
@@ -638,6 +638,11 @@ _cwd_path_get(const Evas_Object *obj, const char *relpath)
 char *
 _util_local_path_get(const Evas_Object *obj, const char *relpath)
 {
+#ifdef _WIN32
+   if (evil_path_is_absolute(relpath))
+     return strdup(relpath);
+   else
+#endif
    if (relpath[0] == '/')
      return strdup(relpath);
    else if (eina_str_has_prefix(relpath, "~/"))

-- 


Reply via email to