Commit ace833f3 authored by Pierre's avatar Pierre
Browse files

drms: Fix a pointer to int comparison.

parent b61820ee
...@@ -2004,7 +2004,7 @@ static int GetiPodID( int64_t *p_ipod_id ) ...@@ -2004,7 +2004,7 @@ static int GetiPodID( int64_t *p_ipod_id )
if( IOServiceGetMatchingServices( port, match_dic, if( IOServiceGetMatchingServices( port, match_dic,
&iterator ) == KERN_SUCCESS ) &iterator ) == KERN_SUCCESS )
{ {
while( ( device = IOIteratorNext( iterator ) ) != NULL ) while( ( device = IOIteratorNext( iterator ) ) != 0 )
{ {
value = IORegistryEntryCreateCFProperty( device, value = IORegistryEntryCreateCFProperty( device,
CFSTR("GUID"), kCFAllocatorDefault, kNilOptions ); CFSTR("GUID"), kCFAllocatorDefault, kNilOptions );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment