Index: /trunk/src/VBox/Main/glue/EventQueue.cpp
===================================================================
--- /trunk/src/VBox/Main/glue/EventQueue.cpp	(revision 22848)
+++ /trunk/src/VBox/Main/glue/EventQueue.cpp	(revision 22849)
@@ -319,5 +319,5 @@
             Event* aEvent = NULL;
           
-            fHasEvent = waitForEvent(&aEvent);
+            BOOL fHasEvent = waitForEvent(&aEvent);
             if (fHasEvent)
               handleEvent(aEvent);
@@ -330,11 +330,11 @@
         MyThreadHandle aHandle;
 
-        DWORD aCode = MsgWaitForMultipleObjects(1, &aHandle.mh, 
-                                             TRUE /*fWaitAll*/, 
-                                             0 /*ms*/, 
-                                             QS_ALLINPUT);
-        if (aCode == WAIT_TIMEOUT)
+        DWORD aCode2 = MsgWaitForMultipleObjects(1, &aHandle.mh, 
+                                                 TRUE /*fWaitAll*/, 
+                                                 0 /*ms*/, 
+                                                 QS_ALLINPUT);
+        if (aCode2 == WAIT_TIMEOUT)
             rc = VERR_TIMEOUT;
-        else if (aCode == WAIT_OBJECT_0)
+        else if (aCode2 == WAIT_OBJECT_0)
             rc = VINF_SUCCESS;
         else
