src/platform_beos.cpp
changeset 1240 22d4d1bd4e21
parent 1231 8206d0e4cf49
child 1242 1e6db80d2393
--- a/src/platform_beos.cpp	Tue Mar 20 15:28:19 2012 -0400
+++ b/src/platform_beos.cpp	Tue Mar 20 15:38:12 2012 -0400
@@ -40,7 +40,6 @@
 
 #include "physfs_internal.h"
 
-
 int __PHYSFS_platformInit(void)
 {
     return 1;  /* always succeed. */
@@ -178,7 +177,7 @@
     const char *str = path.Path();
     assert(str != NULL);
     char *retval = (char *) allocator.Malloc(strlen(str) + 1);
-    BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
+    BAIL_IF_MACRO(!retval, PHYSFS_ERR_OUT_OF_MEMORY, NULL);
     strcpy(retval, str);
     return retval;
 } /* __PHYSFS_platformCalcBaseDir */