From: Vincent Torri Date: Wed, 4 Sep 2019 15:39:02 +0000 (+0100) Subject: fix parsing module path on Windows X-Git-Tag: submit/tizen/20190916.075039~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70c65de350df9fd5e62767333e127870f0c73bf0;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c index da665e7..22e6994 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.*