From 6e726e2a916ef4a48590d91a52e1116a38110602 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 11 Sep 2008 13:14:22 -0700 Subject: [PATCH] winex11: Make button_state as large as the maximum number of cursors. Fixes Coverity id 728. --- dlls/winex11.drv/wintab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c index 5793e2c3f5c..c6545e75734 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -267,7 +267,6 @@ static int proximity_out_type; static HWND hwndTabletDefault; static WTPACKET gMsgPacket; static DWORD gSerial; -static INT button_state[10]; /* Reference: http://www.wacomeng.com/devsupport/ibmpc/gddevpc.html * @@ -303,6 +302,7 @@ static INT button_state[10]; * So to support that we need CURSORMAX of 12 (0 to 11) * FIXME: we don't support more than 4 regular tablets or 2 multimode tablets */ #define CURSORMAX 12 +static INT button_state[CURSORMAX]; static LOGCONTEXTW gSysContext; static WTI_DEVICES_INFO gSysDevice;