winex11: Return FALSE from LoadTabletInfo if the system isn't a tablet.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46024
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2018-10-21 16:46:32 -06:00 committed by Alexandre Julliard
parent 62838182d5
commit 4e122bdadd
1 changed files with 3 additions and 3 deletions

View File

@ -761,14 +761,14 @@ BOOL CDECL X11DRV_LoadTabletInfo(HWND hwnddefault)
} /* for XListInputDevices */
pXFreeDeviceList(devices);
if (axis_read_complete)
gSysDevice.NCSRTYPES = gNumCursors;
else
if (!axis_read_complete)
{
disable_system_cursors();
WARN("Did not find a valid stylus, unable to determine system context parameters. Wintab is disabled.\n");
return FALSE;
}
gSysDevice.NCSRTYPES = gNumCursors;
return TRUE;
}