Index: /trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp	(revision 42566)
+++ /trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp	(revision 42567)
@@ -29,4 +29,6 @@
 #include "ProgressImpl.h"
 
+#include <memory> /* For auto_ptr. */
+
 #include <iprt/env.h>
 
@@ -88,5 +90,6 @@
     {
         HRESULT hr = mProgress->notifyComplete(S_OK);
-        ComAssertComRC(hr);
+        if (FAILED(hr))
+            return VERR_COM_UNEXPECTED; /** @todo Find a better rc. */
     }
 
@@ -103,9 +106,9 @@
         && !fCompleted)
     {
-        HRESULT hr = mProgress->notifyComplete(hr,
+        HRESULT hr2 = mProgress->notifyComplete(hr,
                                                COM_IIDOF(IGuestSession),
                                                GuestSession::getStaticComponentName(),
                                                strMsg.c_str());
-        if (FAILED(hr))
+        if (FAILED(hr2))
             return VERR_COM_UNEXPECTED;
     }
