VirtualBox

Changeset 42920 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 22, 2012 1:12:39 PM (12 years ago)
Author:
vboxsync
Message:

Main/src-client/GuestProcessImpl.cpp: fix compiler warnings on XPCOM, as it generates strange enums

File:
1 edited

Legend:

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

    r42897 r42920  
    716716            fSignal = TRUE; /* Signal in any case. */
    717717            /* Do we need to report termination? */
    718             waitRes = (mData.mProcess.mFlags & ProcessCreateFlag_IgnoreOrphanedProcesses)
    719                     ? ProcessWaitResult_Status : ProcessWaitResult_Terminate;
     718            if (mData.mProcess.mFlags & ProcessCreateFlag_IgnoreOrphanedProcesses)
     719                waitRes = ProcessWaitResult_Status;
     720            else
     721                waitRes = ProcessWaitResult_Terminate;
    720722
    721723            mData.mStatus = ProcessStatus_Down;
     
    865867    if (fSignal)
    866868    {
    867         int rc2 = signalWaiters(  pData->u32HandleId == OUTPUT_HANDLE_ID_STDOUT
    868                                 ? ProcessWaitResult_StdOut : ProcessWaitResult_StdErr);
     869        int rc2;
     870        if (pData->u32HandleId == OUTPUT_HANDLE_ID_STDOUT)
     871            rc2 = signalWaiters(ProcessWaitResult_StdOut);
     872        else
     873            rc2 = signalWaiters(ProcessWaitResult_StdErr);
    869874        if (RT_SUCCESS(vrc))
    870875            vrc = rc2;
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