[PATCH] winex11: Return FALSE from LoadTabletInfo if the system isn't a tablet

Alex Henrie alexhenrie24 at gmail.com
Sun Oct 21 17:46:32 CDT 2018


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46024
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/winex11.drv/wintab.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index e4259bf5eb..7a9a3a7b1c 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -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;
 }
 
-- 
2.19.1




More information about the wine-devel mailing list