src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2547 3cfe0ae232c0
parent 2546 daf40497dcd4
child 2550 b5b8a7f4a965
--- a/src/haptic/darwin/SDL_syshaptic.c	Tue Jul 22 11:40:43 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Tue Jul 22 11:42:01 2008 +0000
@@ -205,7 +205,7 @@
 
    hidProperties = usbProperties = 0;
 
-   ret = IORegistryEntryCreateCFProperties(hidDevice, &hidProperties,
+   ret = IORegistryEntryCreateCFProperties(dev, &hidProperties,
                                            kCFAllocatorDefault,
                                            kNilOptions);
    if ((ret != KERN_SUCCESS) || !hidProperties) {