elm_prefs: compatibility for Windows.

Summary:
Add test for relative path on Windows

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
michelle legrand 2014-12-23 16:08:00 +01:00 committed by Cedric BAIL
parent 8d4a6bfc81
commit ce9498311a
1 changed files with 4 additions and 0 deletions

View File

@ -1146,7 +1146,11 @@ _elm_prefs_efl_file_file_set(Eo *obj, Elm_Prefs_Data *sd, const char *file, cons
sd->file = eina_stringshare_printf("%s/%s", prefix, "preferences.epb");
else
{
#ifndef _WIN32
if (*file != '/') /* relative */
#else
if (!(strchr(file,':'))) /* relative */
#endif
sd->file = eina_stringshare_printf("%s/%s", prefix, file);
else
sd->file = eina_stringshare_add(file);