Index: trunk/psLib/src/sys/psAssert.h
===================================================================
--- trunk/psLib/src/sys/psAssert.h	(revision 12596)
+++ trunk/psLib/src/sys/psAssert.h	(revision 14676)
@@ -20,15 +20,13 @@
 }
 
-// Ensure this is a psLib pointer, by checking for the memblock bounds.
-#define PS_ASSERT_PTR(NAME, RVAL) \
+// Ensure this is a psLib pointer
+#define PS_ASSERT_PTR(PTR, RVAL) \
 { \
-    if (NAME == NULL) return(RVAL); \
-    psMemBlock *mb = (psMemBlock*)(NAME) - 1; \
-    if (mb->startblock != P_PS_MEMMAGIC || mb->endblock != P_PS_MEMMAGIC || \
-            *(psU32 *)((char *)(mb + 1) + mb->userMemorySize) != P_PS_MEMMAGIC) { \
+    if (PTR == NULL) return RVAL; \
+    if (!psMemIsAlloced(PTR)) { \
         psError(PS_ERR_MEMORY_CORRUPTION, false, \
-                "Error: Pointer %s is corrupted or not on the PS memory system.", \
-                #NAME); \
-        return (RVAL); \
+            "Error: Pointer %p is corrupted or not on the PS memory system.", \
+            PTR); \
+        return RVAL; \
     } \
 }
