forked from enlightenment/efl
Use eina_stringshare_add() instead of strdup() on mmaped file
names on Windows. This fix eet shut down on Windows. SVN revision: 56380
This commit is contained in:
parent
1bd97ec119
commit
eba92a95f3
|
@ -480,5 +480,9 @@
|
|||
|
||||
2011-01-29 Carsten Haitzler (The Rasterman)
|
||||
|
||||
1.4.0 release
|
||||
* 1.4.0 release
|
||||
|
||||
2011-01-29 Vincent Torri
|
||||
|
||||
* Use eina_stringshare_add() instead of strdup() on mmaped file names
|
||||
on Windows. This fix eet shut down on Windows.
|
||||
|
|
|
@ -202,7 +202,7 @@ eet_dictionary_string_get_char(const Eet_Dictionary *ed,
|
|||
/* Windows file system could change the mmaped file when replacing a file. So we need to copy all string in memory to avoid bugs. */
|
||||
if (!ed->all[idx].allocated)
|
||||
{
|
||||
ed->all[idx].str = strdup(ed->all[idx].str);
|
||||
ed->all[idx].str = eina_stringshare_add(ed->all[idx].str);
|
||||
ed->all[idx].allocated = EINA_TRUE;
|
||||
}
|
||||
#endif /* ifdef _WIN32 */
|
||||
|
|
Loading…
Reference in New Issue