Fixing #314047: "Wrong version check in SUHost code"

Thanks to Hofman for the patch and the catch.
This commit is contained in:
Andy Matuschak committed 2009-01-05 09:42:35 -08:00
1 parent 91c242ac04
commit 85eb5a7496
1 file changed
+1 -1
+1 -1
View File
@@ -139,7 +139,7 @@
return [[NSUserDefaults standardUserDefaults] objectForKey:defaultName];
CFPropertyListRef obj = CFPreferencesCopyAppValue((CFStringRef)defaultName, (CFStringRef)[bundle bundleIdentifier]);
#if MAC_OS_X_VERSION_MAX_ALLOWED > 1050
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4
return [NSMakeCollectable(obj) autorelease];
#else
return [(id)obj autorelease];