summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelle legrand <michelle.legrand@openwide.fr>2014-12-23 16:08:00 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 18:08:54 +0100
commitf477c0ffeafd03cad7a684f07b187dde9ff01e25 (patch)
tree5b4d20c645836f7035619f5e15ee29557d686994
parent2ff0b65488f3029f442e468f99daa3c0302b852b (diff)
elm_prefs: compatibility for Windows.
Summary: Add test for relative path on Windows @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_prefs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elm_prefs.c b/src/lib/elm_prefs.c
index 56bcf7f67..4cf5d15b6 100644
--- a/src/lib/elm_prefs.c
+++ b/src/lib/elm_prefs.c
@@ -1146,7 +1146,11 @@ _elm_prefs_efl_file_file_set(Eo *obj, Elm_Prefs_Data *sd, const char *file, cons
1146 sd->file = eina_stringshare_printf("%s/%s", prefix, "preferences.epb"); 1146 sd->file = eina_stringshare_printf("%s/%s", prefix, "preferences.epb");
1147 else 1147 else
1148 { 1148 {
1149#ifndef _WIN32
1149 if (*file != '/') /* relative */ 1150 if (*file != '/') /* relative */
1151#else
1152 if (!(strchr(file,':'))) /* relative */
1153#endif
1150 sd->file = eina_stringshare_printf("%s/%s", prefix, file); 1154 sd->file = eina_stringshare_printf("%s/%s", prefix, file);
1151 else 1155 else
1152 sd->file = eina_stringshare_add(file); 1156 sd->file = eina_stringshare_add(file);