diff options
-rw-r--r-- | apple_remote/source/HIDRemoteControlDevice.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apple_remote/source/HIDRemoteControlDevice.m b/apple_remote/source/HIDRemoteControlDevice.m index e82034849d2a..88ebf66c664a 100644 --- a/apple_remote/source/HIDRemoteControlDevice.m +++ b/apple_remote/source/HIDRemoteControlDevice.m @@ -437,7 +437,7 @@ static void QueueCallbackFunction(void* target, IOReturn result, void* refcon, //Get cookie object = [element valueForKey: (NSString*)CFSTR(kIOHIDElementCookieKey) ]; if (object == nil || ![object isKindOfClass:[NSNumber class]]) continue; - if (object == 0 || CFGetTypeID(object) != CFNumberGetTypeID()) continue; + if (object == NULL || CFGetTypeID(object) != CFNumberGetTypeID()) continue; cookie = (IOHIDElementCookie) [object longValue]; //Get usage |