summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index 3bb8b1e243..07d247bea0 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -775,6 +775,16 @@ ecore_file_file_get(const char *path)
775 if (!path) return NULL; 775 if (!path) return NULL;
776 if ((result = strrchr(path, '/'))) result++; 776 if ((result = strrchr(path, '/'))) result++;
777 else result = (char *)path; 777 else result = (char *)path;
778
779#ifdef _WIN32
780 char *result_backslash = NULL;
781 if ((result_backslash = strrchr(path, '\\')))
782 {
783 result_backslash++;
784 if (result_backslash > result) result = result_backslash;
785 }
786#endif
787
778 return result; 788 return result;
779} 789}
780 790