mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/wmr: Fix segfault if unsupported HoloLens Sensors device is present.
This commit is contained in:
parent
c8ee075b8d
commit
fd065cca6e
|
@ -104,6 +104,10 @@ find_control_device(struct xrt_prober *xp,
|
|||
dev = devices[i];
|
||||
}
|
||||
|
||||
if (dev == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned char m_str[256] = {0};
|
||||
unsigned char p_str[256] = {0};
|
||||
xrt_prober_get_string_descriptor(xp, dev, XRT_PROBER_STRING_MANUFACTURER, m_str, sizeof(m_str));
|
||||
|
|
Loading…
Reference in a new issue