diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c index ff9a4ca677a..2da04621934 100644 --- a/dlls/wintab32/context.c +++ b/dlls/wintab32/context.c @@ -223,7 +223,10 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd) if (ptr->context.lcOutExtY > 0) packet->pkY = ptr->context.lcOutExtY - packet->pkY; else if (ptr->context.lcOutExtY < 0) - packet->pkY = abs(ptr->context.lcOutExtY + packet->pkY); + { + int y = ptr->context.lcOutExtY + packet->pkY; + packet->pkY = abs(y); + } DUMPPACKET(*packet);