VirtualBox

Changeset 55599 in vbox


Ignore:
Timestamp:
May 2, 2015 5:05:51 AM (9 years ago)
Author:
vboxsync
Message:

GuestProcessImpl.cpp: Turns out the guest doesn't want a terminating string in the environment block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r55591 r55599  
    10811081        cbArgs = pszArgs ? strlen(pszArgs) + 1 : 0; /* Include terminating zero. */
    10821082
    1083     /* Prepare environment. */
     1083    /* Prepare environment.  The guest service dislikes the empty string at the end, so drop it. */
    10841084    size_t  cbEnvBlock;
    10851085    char   *pszzEnvBlock;
    10861086    if (RT_SUCCESS(vrc))
    10871087        vrc = mData.mProcess.mEnvironmentChanges.queryUtf8Block(&pszzEnvBlock, &cbEnvBlock);
    1088 
    10891088    if (RT_SUCCESS(vrc))
    10901089    {
     1090        Assert(cbEnvBlock > 0);
     1091        cbEnvBlock--;
     1092
    10911093        /* Prepare HGCM call. */
    10921094        VBOXHGCMSVCPARM paParms[16];
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette