Commit 8e527542 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

winex11drv: Do extra error checking when opening XInput device.

parent 0cc5a68e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment