fix parsing module path on Windows
authorVincent Torri <vincent.torri@gmail.com>
Wed, 4 Sep 2019 15:39:02 +0000 (16:39 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Mon, 16 Sep 2019 01:23:00 +0000 (10:23 +0900)
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

index da665e7..22e6994 100644 (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.*