summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vmmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c
index 7778923..590144f 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -1120,12 +1120,12 @@ GetVMMouseMotionEvent(InputInfoPtr pInfo){
VMMousePrivPtr mPriv;
int buttons, dx, dy, dz, dw;
VMMOUSE_INPUT_DATA vmmouseInput;
- int ps2Buttons = 0;
int numPackets;
pMse = pInfo->private;
mPriv = (VMMousePrivPtr)pMse->mousePriv;
while((numPackets = VMMouseClient_GetInput(&vmmouseInput))){
+ int ps2Buttons = 0;
if (numPackets == VMMOUSE_ERROR) {
VMMouseClient_Disable();
VMMouseClient_Enable();