Loading...
libkern/c++/OSCollection.cpp xnu-4570.71.2 xnu-1504.7.4
--- xnu/xnu-4570.71.2/libkern/c++/OSCollection.cpp
+++ xnu/xnu-1504.7.4/libkern/c++/OSCollection.cpp
@@ -62,7 +62,11 @@
 {
     if (fOptions & kImmutable)
     {
+#if __LP64__
 	if (!(gIOKitDebug & kOSRegistryModsMode))
+#else
+	if (gIOKitDebug & kOSRegistryModsMode)
+#endif
 	{
 	    panic("Trying to change a collection in the registry");
 	}