소스 검색

Remove unneeded property type check

Sam Lantinga 2 년 전
부모
커밋
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;