forked from enlightenment/efl
Elm theme: correct parse a theme filename on Windows OS.
Windows os uses ':' as delimiter between disk name and file path. <disk>:/<dir>/file.ext. In this commit added parse case for <disk_name> symbol meets before ":/".
This commit is contained in:
parent
db7b6dd7e0
commit
86928a430c
|
@ -399,8 +399,9 @@ _elm_theme_parse(Elm_Theme *th, const char *theme)
|
||||||
eina_strbuf_append_char(buf, ':');
|
eina_strbuf_append_char(buf, ':');
|
||||||
pe += 2;
|
pe += 2;
|
||||||
}
|
}
|
||||||
else if ((pe[0] == ':') && (pe[1] == '\\'))
|
else if ((isalpha(pe[0]) && (pe[1] == ':') && pe[2] == '/'))
|
||||||
{
|
{
|
||||||
|
// Correct processing file path on Windows OS "<disk>:/"
|
||||||
eina_strbuf_append_char(buf, *pe);
|
eina_strbuf_append_char(buf, *pe);
|
||||||
pe++;
|
pe++;
|
||||||
eina_strbuf_append_char(buf, *pe);
|
eina_strbuf_append_char(buf, *pe);
|
||||||
|
|
Loading…
Reference in New Issue