VirtualBox

Changeset 84260 in vbox


Ignore:
Timestamp:
May 11, 2020 4:21:14 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control: Implemented support for long(er) command lines [build fix]. ​​bugref:9320

File:
1 edited

Legend:

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

    r84254 r84260  
    11131113
    11141114    /* Prepare environment.  The guest service dislikes the empty string at the end, so drop it. */
    1115     size_t  cbEnvBlock = 0; /* Shut up MSVC. */
    1116     char   *pszzEnvBlock;
     1115    size_t  cbEnvBlock   = 0;    /* Shut up MSVC. */
     1116    char   *pszzEnvBlock = NULL; /* Ditto. */
    11171117    if (RT_SUCCESS(vrc))
    11181118        vrc = mData.mProcess.mEnvironmentChanges.queryUtf8Block(&pszzEnvBlock, &cbEnvBlock);
     
    11291129        Assert(cbEnvBlock > 0);
    11301130        cbEnvBlock--;
     1131        AssertPtr(pszzEnvBlock);
    11311132
    11321133        /* Prepare HGCM call. */
     
    11771178            AssertRC(rc2);
    11781179        }
    1179 
     1180    }
     1181
     1182    if (pszzEnvBlock)
     1183    {
    11801184        mData.mProcess.mEnvironmentChanges.freeUtf8Block(pszzEnvBlock);
     1185        pszzEnvBlock = NULL;
    11811186    }
    11821187
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