Index: /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
===================================================================
--- /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp	(revision 30443)
+++ /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp	(revision 30444)
@@ -883,5 +883,5 @@
                                      * Close the child ends of any pipes and redirected files.
                                      */
-                                    int rc2 = RTHandleClose(phStdIn);   AssertRC(rc2);
+                                    rc2 = RTHandleClose(phStdIn);   AssertRC(rc2);
                                     phStdIn    = NULL;
                                     rc2 = RTHandleClose(phStdOut);  AssertRC(rc2);
@@ -913,7 +913,7 @@
                                                      pData->pszCmd, pThread->uContextID, rc);
 
-                                    int rc2 = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID, pData->uPID,
-                                                                              PROC_STS_ERROR, rc,
-                                                                              NULL /* pvData */, 0 /* cbData */);
+                                    rc2 = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID, pData->uPID,
+                                                                          PROC_STS_ERROR, rc,
+                                                                          NULL /* pvData */, 0 /* cbData */);
                                     if (RT_FAILURE(rc2))
                                         VBoxServiceError("ControlExec: Could not report process start error! Error: %Rrc (process error %Rrc)\n",
