Index: /trunk/src/VBox/Main/MachineImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/MachineImpl.cpp	(revision 23919)
+++ /trunk/src/VBox/Main/MachineImpl.cpp	(revision 23920)
@@ -8521,5 +8521,5 @@
                                  aConsoleProgress,
                                  1,            // operation weight; must be the same as in Console::TakeSnapshot()
-                                 fTakingSnapshotOnline);
+                                 !!fTakingSnapshotOnline);
 
         if (SUCCEEDED(rc) && mSnapshotData.mLastState == MachineState_Saved)
@@ -8554,8 +8554,9 @@
         }
     }
-    catch (HRESULT rc)
+    catch (HRESULT hrc)
     {
         pSnapshot->uninit();
         pSnapshot.setNull();
+        rc = hrc;
     }
 
