Преглед изворни кода

Minor error string correction.

Ryan C. Gordon пре 24 година
родитељ
комит
d302b1e169
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      platform/os2.c

+ 1 - 1
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] != '\\') ? "\\*.*" : "*.*");