From 0021d1386d5828e1bd2b857a2f073327902df817 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 4 Sep 2019 16:39:02 +0100 Subject: [PATCH] fix parsing module path on Windows Summary: only '/' path separator is used while on Windows it can also be '\\'. Fix rage and emotion_test play of videos Test Plan: emotion_test plays videos while it didn't before this patch Reviewers: raster, cedric, zmike Reviewed By: raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9837 --- src/lib/emotion/emotion_modules.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c index da665e7aa4..22e6994e4b 100644 --- a/src/lib/emotion/emotion_modules.c +++ b/src/lib/emotion/emotion_modules.c @@ -335,7 +335,12 @@ _find_mod(const char *name) p > path; p--) { - if (*p == '/') + if ((*p == '/') +/* FIXME : find a better way to handle Windows path in all the EFL */ +#ifdef _WIN32 + || (*p == '\\') +#endif + ) { found++; // found == 1 -> p = /module.*