VirtualBox

Changeset 29547 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 17, 2010 2:07:03 PM (15 years ago)
Author:
vboxsync
Message:

VBoxServiceControlExec: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r29528 r29547  
    115115    uint32_t cbEnv = sizeof(szEnv);
    116116    uint32_t uNumEnvVars;
    117     char szStdIn[_1K];
    118     char szStdOut[_1K];
    119     char szStdErr[_1K];
    120117    char szUser[128];
    121118    char szPassword[128];
     
    174171        /* Let's have a look if we have a running process with PID = uPID ... */
    175172        PVBOXSERVICECTRLTHREAD pNode;
    176         bool bFound = false;
     173        bool fFound = false;
    177174        RTListForEach(&g_GuestControlExecThreads, pNode, VBOXSERVICECTRLTHREAD, Node)
    178175        {
     
    183180                if (pData && pData->uPID == uPID)
    184181                {
    185                     bFound = true;
     182                    fFound = true;
    186183                    break;
    187184                }
     
    189186        }
    190187
    191         if (bFound)
     188        if (fFound)
    192189        {
    193190            PVBOXSERVICECTRLTHREADDATAEXEC pData = (PVBOXSERVICECTRLTHREADDATAEXEC)pNode->pvData;
    194191            AssertPtr(pData);
    195192
    196             uint32_t cbSize = _4K;
     193            const uint32_t cbSize = _4K;
    197194            uint32_t cbRead = cbSize;
    198195            uint8_t *pBuf = (uint8_t*)RTMemAlloc(cbSize);
     
    202199                if (RT_SUCCESS(rc))
    203200                {
    204                     AssertPtr(pBuf);
    205201                    /* cbRead now contains actual size. */
    206202                    rc = VbglR3GuestCtrlExecSendOut(u32ClientId, uContextID, uPID, 0 /* handle ID */, 0 /* flags */,
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