winex11drv: Do extra error checking when opening XInput device.
This commit is contained in:
parent
0cc5a68e2c
commit
8e52754226
|
@ -367,8 +367,9 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault)
|
|||
target = &devices[loop];
|
||||
cursor = &gSysCursor[cursor_target];
|
||||
|
||||
X11DRV_expect_error(data->display, Tablet_ErrorHandler, NULL);
|
||||
opendevice = pXOpenDevice(data->display,target->id);
|
||||
if (opendevice)
|
||||
if (!X11DRV_check_error() && opendevice)
|
||||
{
|
||||
unsigned char map[32];
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue