Mercurial > repos > blastem
changeset 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 | 07a65e2ffb1f |
children | fbfb821e92a8 |
files | util.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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) {