wintab32: fixing a typo which prevented sending correct pkSerialNumber
Eriks Dobelis
eriks.dobelis at biti.lv
Thu Mar 20 10:38:30 CDT 2014
This submission Obsoletes patch id#103302. I split it into parts for
easier review and will later submit the rest of patches, but each of
them will resolve a single issue and they are not interdependent. Common
goal is to resolve http://bugs.winehq.org/show_bug.cgi?id=18517.
This patch fixes a typo in a code, which was a cause for wrong
pkSerialNumber values to be sent in messages. TRACE entries showed
correct values, because TRACE statement was executed before actual
sending of the packet. Due to this it took quite a time to spot the
problem :)
dlls/wintab32/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
>From 28b4c5eebe8740a6e637214003566584c449c022 Mon Sep 17 00:00:00 2001
From: Eriks Dobelis <eriks.dobelis at biti.lv>
Date: Thu, 20 Mar 2014 09:16:22 +0200
Subject: [PATCH] wintab32: Fixing pkSerialNumber typo
---
dlls/wintab32/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index 7278373..9bc29a4 100644
--- a/dlls/wintab32/context.c
+++ b/dlls/wintab32/context.c
@@ -313,7 +313,7 @@ static LPVOID TABLET_CopyPacketData(LPOPENCONTEXT context, LPVOID lpPkt,
if (context->context.lcPktData & PK_CHANGED)
ptr+=CopyTabletData(ptr,&wtp->pkChanged,sizeof(WTPKT));
if (context->context.lcPktData & PK_SERIAL_NUMBER)
- ptr+=CopyTabletData(ptr,&wtp->pkChanged,sizeof(UINT));
+ ptr+=CopyTabletData(ptr,&wtp->pkSerialNumber,sizeof(UINT));
if (context->context.lcPktData & PK_CURSOR)
ptr+=CopyTabletData(ptr,&wtp->pkCursor,sizeof(UINT));
if (context->context.lcPktData & PK_BUTTONS)
--
1.8.3.2
More information about the wine-patches
mailing list