forked from enlightenment/efl
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:
parent
abbfd23a22
commit
70f530e2d6
|
@ -1371,7 +1371,7 @@ eolian_directory_scan(const char *dir)
|
||||||
{
|
{
|
||||||
int len = strlen(file);
|
int len = strlen(file);
|
||||||
int idx = len - 1;
|
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));
|
eina_hash_add(_filenames, eina_stringshare_add_length(file+idx+1, len - idx - sizeof(EO_SUFFIX)), strdup(file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue