Minor error string correction.

This commit is contained in:
Ryan C. Gordon 2002-07-28 18:01:45 +00:00
parent 989fd382c4
commit d302b1e169
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname,
ULONG count = 1;
APIRET rc;
BAIL_IF_MACRO(strlen(dirname) > sizeof (spec) - 5, ERR_OS_ERROR, NULL);
BAIL_IF_MACRO(strlen(dirname) > sizeof (spec) - 5, ERR_BAD_FILENAME, NULL);
strcpy(spec, dirname);
strcat(spec, (spec[strlen(spec) - 1] != '\\') ? "\\*.*" : "*.*");