Changeset 29547 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- May 17, 2010 2:07:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r29528 r29547 115 115 uint32_t cbEnv = sizeof(szEnv); 116 116 uint32_t uNumEnvVars; 117 char szStdIn[_1K];118 char szStdOut[_1K];119 char szStdErr[_1K];120 117 char szUser[128]; 121 118 char szPassword[128]; … … 174 171 /* Let's have a look if we have a running process with PID = uPID ... */ 175 172 PVBOXSERVICECTRLTHREAD pNode; 176 bool bFound = false;173 bool fFound = false; 177 174 RTListForEach(&g_GuestControlExecThreads, pNode, VBOXSERVICECTRLTHREAD, Node) 178 175 { … … 183 180 if (pData && pData->uPID == uPID) 184 181 { 185 bFound = true;182 fFound = true; 186 183 break; 187 184 } … … 189 186 } 190 187 191 if ( bFound)188 if (fFound) 192 189 { 193 190 PVBOXSERVICECTRLTHREADDATAEXEC pData = (PVBOXSERVICECTRLTHREADDATAEXEC)pNode->pvData; 194 191 AssertPtr(pData); 195 192 196 uint32_t cbSize = _4K;193 const uint32_t cbSize = _4K; 197 194 uint32_t cbRead = cbSize; 198 195 uint8_t *pBuf = (uint8_t*)RTMemAlloc(cbSize); … … 202 199 if (RT_SUCCESS(rc)) 203 200 { 204 AssertPtr(pBuf);205 201 /* cbRead now contains actual size. */ 206 202 rc = VbglR3GuestCtrlExecSendOut(u32ClientId, uContextID, uPID, 0 /* handle ID */, 0 /* flags */,
Note:
See TracChangeset
for help on using the changeset viewer.