Index: ui/base/touch/touch_device_win.cc |
diff --git a/ui/base/touch/touch_device_win.cc b/ui/base/touch/touch_device_win.cc |
index ba5c2600b16407701a45ca7a33298e2387031c56..18f2f120d67ed226730aab723a84b96eaa123e4c 100644 |
--- a/ui/base/touch/touch_device_win.cc |
+++ b/ui/base/touch/touch_device_win.cc |
@@ -15,6 +15,9 @@ bool IsTouchDevicePresent() { |
} |
int MaxTouchPoints() { |
+ if (!IsTouchDevicePresent()) |
+ return 0; |
+ |
return GetSystemMetrics(SM_MAXIMUMTOUCHES); |
} |