--- q_a/samples/bezier/bezier.c 2018/08/09 18:29:19 1.1 +++ q_a/samples/bezier/bezier.c 2018/08/09 18:29:37 1.1.1.2 @@ -206,8 +206,8 @@ static int svIndex; PolyBezier (hdc, svPoints, svNumDown+1); /* Change the point to match the new mouse position. */ - svPoints[svIndex].x = LOWORD(lParam); - svPoints[svIndex].y = HIWORD(lParam); + svPoints[svIndex].x = (int)(short)LOWORD(lParam); + svPoints[svIndex].y = (int)(short)HIWORD(lParam); SelectObject(hdc, hPenLine); Polyline (hdc, svPoints, svNumDown+1);