Eolian: fix issue for Windows.

On Windows, '\' are used to separate the names of a path. It was not
supported.
This patch fixes that. Thanks to Vincent Torri for catching it (and good
luck in Windows ;-))
This commit is contained in:
Daniel Zaoui 2014-05-28 09:32:56 +03:00
parent abbfd23a22
commit 70f530e2d6
1 changed files with 1 additions and 1 deletions

View File

@ -1371,7 +1371,7 @@ eolian_directory_scan(const char *dir)
{
int len = strlen(file);
int idx = len - 1;
while (idx >= 0 && file[idx] != '/') idx--;
while (idx >= 0 && file[idx] != '/' && file[idx] != '\\') idx--;
eina_hash_add(_filenames, eina_stringshare_add_length(file+idx+1, len - idx - sizeof(EO_SUFFIX)), strdup(file));
}
}