Просмотр исходного кода

Remove unneeded property type check

Sam Lantinga 2 лет назад
Родитель
Сommit
4644ac99fa
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      src/hidapi/mac/hid.c

+ 0 - 3
src/hidapi/mac/hid.c

@@ -383,9 +383,6 @@ static int get_string_property(IOHIDDeviceRef device, CFStringRef prop, wchar_t
 	if (!len)
 		return 0;
 
-	if (CFGetTypeID(prop) != CFStringGetTypeID())
-		return 0;
-
 	str = (CFStringRef) IOHIDDeviceGetProperty(device, prop);
 
 	buf[0] = 0;