mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 06:45:59 +00:00
Workaround for crash on Apple Mac M1 hardware
This commit is contained in:
@@ -326,7 +326,10 @@ static int get_string_property_utf8(IOHIDDeviceRef device, CFStringRef prop, cha
|
|||||||
|
|
||||||
static int get_serial_number(IOHIDDeviceRef device, wchar_t *buf, size_t len)
|
static int get_serial_number(IOHIDDeviceRef device, wchar_t *buf, size_t len)
|
||||||
{
|
{
|
||||||
return get_string_property(device, CFSTR(kIOHIDSerialNumberKey), buf, len);
|
// This crashes on M1 Macs, tracked by radar bug 79667729
|
||||||
|
//return get_string_property(device, CFSTR(kIOHIDSerialNumberKey), buf, len);
|
||||||
|
buf[0] = 0;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_manufacturer_string(IOHIDDeviceRef device, wchar_t *buf, size_t len)
|
static int get_manufacturer_string(IOHIDDeviceRef device, wchar_t *buf, size_t len)
|
||||||
|
Reference in New Issue
Block a user