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
This commit is contained in:
Vincent Torri 2019-09-04 16:39:02 +01:00 committed by Carsten Haitzler (Rasterman)
parent 4e379f5db4
commit 0021d1386d
1 changed files with 6 additions and 1 deletions

View File

@ -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.*