# HG changeset patch # User Matti Hamalainen # Date 1582522936 -7200 # Node ID 45c2e474a9971d88f3c156127bf72e863be7a6c0 # Parent b383f4e6ab897d02292a04608c751deb592e60db Support both UNIX and DOS/Windows path separators in th_mkdir_path(). diff -r b383f4e6ab89 -r 45c2e474a997 th_file.c --- a/th_file.c Tue Jan 28 21:28:02 2020 +0200 +++ b/th_file.c Mon Feb 24 07:42:16 2020 +0200 @@ -169,7 +169,7 @@ { // Split foremost path element out for (save = 0, end = start; path[end] != 0; end++) - if (path[end] == TH_DIR_SEPARATOR_CHR) + if (path[end] == '/' || path[end] == '\\') { save = path[end]; path[end] = 0;