raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0021d1386d5828e1bd2b857a2f073327902df817

commit 0021d1386d5828e1bd2b857a2f073327902df817
Author: Vincent Torri <[email protected]>
Date:   Wed Sep 4 16:39:02 2019 +0100

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

-- 


Reply via email to