From d302b1e1697764ba219e61587d8995031770143f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 28 Jul 2002 18:01:45 +0000 Subject: [PATCH] Minor error string correction. --- platform/os2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/os2.c b/platform/os2.c index 16c8a21..fae6beb 100644 --- a/platform/os2.c +++ b/platform/os2.c @@ -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] != '\\') ? "\\*.*" : "*.*");