Mercurial > repos > blastem
diff util.c @ 1039:86ed81bb574f
Fix bug in ensure_dir_exists that would cause it to fail when mixed path separators were used
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 19 Jul 2016 21:57:23 -0700 |
parents | 4a92889e2889 |
children | 266dc3f31f35 |
line wrap: on
line diff
--- a/util.c Sun Jul 17 23:18:30 2016 -0700 +++ b/util.c Tue Jul 19 21:57:23 2016 -0700 @@ -338,7 +338,7 @@ //so search for both char *sep = strrchr(parent, '\\'); char *osep = strrchr(parent, '/'); - if (osep && (!sep || osep < sep)) { + if (osep && (!sep || osep > sep)) { sep = osep; } if (!sep || sep == parent) {