VirtualBox

Changeset 38866 in vbox


Ignore:
Timestamp:
Sep 26, 2011 1:08:36 PM (13 years ago)
Author:
vboxsync
Message:

VBoxService/GuestCtrl: Fixed ABI for stdout pipe ID.

File:
1 edited

Legend:

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

    r38587 r38866  
    339339    if (RT_SUCCESS(rc))
    340340    {
    341         const PVBOXSERVICECTRLTHREAD pNode = vboxServiceControlExecThreadGetByPID(uPID);
    342         if (pNode)
    343         {
    344             const PVBOXSERVICECTRLTHREADDATAEXEC pData = (PVBOXSERVICECTRLTHREADDATAEXEC)pNode->pvData;
     341        const PVBOXSERVICECTRLTHREAD pThread = vboxServiceControlExecThreadGetByPID(uPID);
     342        if (pThread)
     343        {
     344            const PVBOXSERVICECTRLTHREADDATAEXEC pData = (PVBOXSERVICECTRLTHREADDATAEXEC)pThread->pvData;
    345345            AssertPtr(pData);
    346346
     
    353353
    354354                case OUTPUT_HANDLE_ID_STDOUT: /* StdOut */
     355                default: /* On VBox host < 4.1 this is 0, so default to stdout
     356                          * to not break things. */
    355357                    pPipeBuf = &pData->stdOut;
    356                     break;
    357 
    358                 default:
    359                     AssertReleaseMsgFailed(("Unknown output handle ID (%u)\n", uHandleId));
    360358                    break;
    361359            }
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