Index: /trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
===================================================================
--- /trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h	(revision 55593)
+++ /trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h	(revision 55594)
@@ -363,4 +363,5 @@
     GuestEnvironmentBase(const GuestEnvironmentBase &rThat, bool fChangeRecord)
         : m_hEnv(NIL_RTENV)
+        , m_cRefs(1)
     {
         int rc = cloneCommon(rThat, fChangeRecord);
@@ -416,4 +417,6 @@
 };
 
+class GuestEnvironmentChanges;
+
 
 /**
@@ -471,4 +474,24 @@
         return cloneCommon(rThat, false /*fChangeRecord*/);
     }
+
+    /**
+     * @copydoc copy()
+     */
+    GuestEnvironment &operator=(const GuestEnvironmentBase &rThat)
+    {
+        int rc = cloneCommon(rThat, true /*fChangeRecord*/);
+        if (RT_FAILURE(rc))
+            throw (Global::vboxStatusCodeToCOM(rc));
+        return *this;
+    }
+
+    /** @copydoc copy() */
+    GuestEnvironment &operator=(const GuestEnvironment &rThat)
+    {   return operator=((const GuestEnvironmentBase &)rThat); }
+
+    /** @copydoc copy() */
+    GuestEnvironment &operator=(const GuestEnvironmentChanges &rThat)
+    {   return operator=((const GuestEnvironmentBase &)rThat); }
+
 };
 
@@ -531,4 +554,23 @@
         return cloneCommon(rThat, true /*fChangeRecord*/);
     }
+
+    /**
+     * @copydoc copy()
+     */
+    GuestEnvironmentChanges &operator=(const GuestEnvironmentBase &rThat)
+    {
+        int rc = cloneCommon(rThat, true /*fChangeRecord*/);
+        if (RT_FAILURE(rc))
+            throw (Global::vboxStatusCodeToCOM(rc));
+        return *this;
+    }
+
+    /** @copydoc copy() */
+    GuestEnvironmentChanges &operator=(const GuestEnvironmentChanges &rThat)
+    {   return operator=((const GuestEnvironmentBase &)rThat); }
+
+    /** @copydoc copy() */
+    GuestEnvironmentChanges &operator=(const GuestEnvironment &rThat)
+    {   return operator=((const GuestEnvironmentBase &)rThat); }
 };
 
