VirtualBox

Changeset 50889 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 26, 2014 1:13:56 PM (11 years ago)
Author:
vboxsync
Message:

dev/graphics: fix a race

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r50848 r50889  
    679679{
    680680    Assert(pThread->u32State == VBOXVDMATHREAD_STATE_TERMINATED);
     681    pThread->u32State = VBOXVDMATHREAD_STATE_CREATED;
    681682    int rc = RTSemEventSignal(pThread->hClientEvent);
    682683    AssertRC(rc);
    683     if (RT_SUCCESS(rc))
    684     {
    685         pThread->u32State = VBOXVDMATHREAD_STATE_CREATED;
    686         return VINF_SUCCESS;
    687     }
    688     return rc;
     684    return VINF_SUCCESS;
    689685}
    690686
     
    12791275
    12801276    uint8_t *pu8Vram = pu8VramBase + pTransfer->Alloc.u.offVRAM;
    1281     bool fIn = (pTransfer->Hdr.u8Flags & VBOXCMDVBVA_OPF_PAGING_TRANSFER_IN);
     1277    bool fIn = !!(pTransfer->Hdr.u8Flags & VBOXCMDVBVA_OPF_PAGING_TRANSFER_IN);
    12821278
    12831279    *ppSysMem = pSysMem;
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