Index: /trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp	(revision 55598)
+++ /trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp	(revision 55599)
@@ -1081,12 +1081,14 @@
         cbArgs = pszArgs ? strlen(pszArgs) + 1 : 0; /* Include terminating zero. */
 
-    /* Prepare environment. */
+    /* Prepare environment.  The guest service dislikes the empty string at the end, so drop it. */
     size_t  cbEnvBlock;
     char   *pszzEnvBlock;
     if (RT_SUCCESS(vrc))
         vrc = mData.mProcess.mEnvironmentChanges.queryUtf8Block(&pszzEnvBlock, &cbEnvBlock);
-
     if (RT_SUCCESS(vrc))
     {
+        Assert(cbEnvBlock > 0);
+        cbEnvBlock--;
+
         /* Prepare HGCM call. */
         VBOXHGCMSVCPARM paParms[16];
