diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index e4259bf5eb9ab0210b14cb2aea430e1b0db8c623..7a9a3a7b1ca83320c4ef244a85192043e2d3c4c9 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;
 }