fix change to parent directory

".." was recognized as relative path :(

issue introduced in 02f9d68f8e8aacd293baabe9fed407db50bb1297
This commit is contained in:
Thomas Bernard 2019-02-14 22:13:20 +01:00
parent e630b818e2
commit ab5a4d0b38
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -2384,7 +2384,7 @@ byte Button_Load_or_Save(T_Selector_settings *settings, byte load, T_IO_Context
if (directory_to_change_to[0] == '.' &&
(directory_to_change_to[1] == '\0' || directory_to_change_to[1] == '/' || directory_to_change_to[1] == '\\' ||
(directory_to_change_to[1] == '.' &&
(directory_to_change_to[2] == '\0' || directory_to_change_to[2] == '/' || directory_to_change_to[2] == '\\')))) // Relative path
(directory_to_change_to[2] == '/' || directory_to_change_to[2] == '\\')))) // Relative path
{
GFX2_Log(GFX2_DEBUG, "Relative bookmark \"%s\", Change to \"%s\" first.\n",
directory_to_change_to, Data_directory);