This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch evas_gl_mkdir
in repository efl.
View the commit online.
commit c272d12b136c802f7a97c190106f528e19b792df
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Thu Jul 18 15:54:35 2024 +0200
gl_common: create cache dir on Windows
---
src/modules/evas/engines/gl_common/evas_gl_file_cache.c | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/modules/evas/engines/gl_common/evas_gl_file_cache.c b/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
index 3366b7e6a8..2cf887c9f3 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
@@ -41,6 +41,7 @@ evas_gl_common_file_cache_mkpath(const char *path)
{
char ss[PATH_MAX];
unsigned int i;
+ Eina_Bool found = EINA_FALSE;
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
if (getuid() != geteuid()) return EINA_FALSE;
@@ -50,11 +51,19 @@ evas_gl_common_file_cache_mkpath(const char *path)
for (i = 0; path[i]; ss[i] = path[i], i++)
{
if (i == sizeof(ss) - 1) return EINA_FALSE;
- if ((path[i] == '/') && (i > 0))
+ if ((path[i] == '/')
+#ifdef _WIN32
+ || (path[i] == '\\')
+#endif
+ )
{
- ss[i] = 0;
- if (!evas_gl_common_file_cache_mkpath_if_not_exists(ss))
- return EINA_FALSE;
+ if (found)
+ {
+ ss[i] = 0;
+ if (!evas_gl_common_file_cache_mkpath_if_not_exists(ss))
+ return EINA_FALSE;
+ }
+ found = EINA_TRUE;
}
}
ss[i] = 0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.