changeset 9084 | 55b2d2cb8b90 |
parent 8374 | 7a1b6c89cb89 |
child 9100 | 3ad0412f8ddf |
--- a/src/fileio.cpp Sun May 04 21:36:37 2008 +0000 +++ b/src/fileio.cpp Sun May 04 21:47:36 2008 +0000 @@ -315,7 +315,7 @@ f = fopen(buf, mode); #if !defined(WIN32) if (f == NULL) { - strtolower(buf + strlen(_searchpaths[sp]) - 1); + strtolower(buf + ((subdir == NO_DIRECTORY) ? 0 : strlen(_searchpaths[sp]) - 1)); f = fopen(buf, mode); } #endif