platform/os2.c
changeset 423 524e087944b4
parent 420 8869f1432112
child 427 c38ace41039f
--- a/platform/os2.c	Sun Jul 28 17:59:38 2002 +0000
+++ b/platform/os2.c	Sun Jul 28 18:01:45 2002 +0000
@@ -516,7 +516,7 @@
     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] != '\\') ? "\\*.*" : "*.*");