archivers/dir.c
changeset 23 bd6ba9c8717c
parent 22 49f6101707b4
child 28 529214f57d1b
--- a/archivers/dir.c	Sun Jul 08 10:58:10 2001 +0000
+++ b/archivers/dir.c	Sun Jul 08 13:57:28 2001 +0000
@@ -107,7 +107,7 @@
 
 static DirHandle *DIR_openArchive(const char *name, int forWriting)
 {
-    const char *dirsep = __PHYSFS_platformDirSeparator;
+    const char *dirsep = PHYSFS_getDirSeparator();
     DirHandle *retval = NULL;
     int namelen = strlen(name);
     int seplen = strlen(dirsep);
@@ -121,7 +121,7 @@
     if (retval->opaque == NULL)
     {
         free(retval);
-        BAIL_IF_MACRO(0, ERR_OUT_OF_MEMORY, NULL);
+        BAIL_IF_MACRO(1, ERR_OUT_OF_MEMORY, NULL);
     } /* if */
 
         /* make sure there's a dir separator at the end of the string */
@@ -195,7 +195,7 @@
     if (!retval)
     {
         free(f);
-        BAIL_IF_MACRO(0, ERR_OUT_OF_MEMORY, NULL);
+        BAIL_IF_MACRO(1, ERR_OUT_OF_MEMORY, NULL);
     } /* if */
 
     errno = 0;
@@ -206,7 +206,7 @@
     if (!rc)
     {
         free(retval);
-        BAIL_IF_MACRO(0, str, NULL);
+        BAIL_IF_MACRO(1, str, NULL);
     } /* if */
 
     retval->opaque = (void *) rc;