equal
deleted
inserted
replaced
313 #endif |
313 #endif |
314 |
314 |
315 f = fopen(buf, mode); |
315 f = fopen(buf, mode); |
316 #if !defined(WIN32) |
316 #if !defined(WIN32) |
317 if (f == NULL) { |
317 if (f == NULL) { |
318 strtolower(buf + strlen(_searchpaths[sp]) - 1); |
318 strtolower(buf + ((subdir == NO_DIRECTORY) ? 0 : strlen(_searchpaths[sp]) - 1)); |
319 f = fopen(buf, mode); |
319 f = fopen(buf, mode); |
320 } |
320 } |
321 #endif |
321 #endif |
322 if (f != NULL && filesize != NULL) { |
322 if (f != NULL && filesize != NULL) { |
323 /* Find the size of the file */ |
323 /* Find the size of the file */ |