VirtualBox

Changeset 71651 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 4, 2018 12:20:08 PM (7 years ago)
Author:
vboxsync
Message:

DevVGA,VBoxC,++: Code cleanup in progress. bugref:9094

Location:
trunk/src/VBox/Devices/Graphics/HGSMI
Files:
2 edited

Legend:

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

    r71629 r71651  
    15351535
    15361536    int rc;
    1537     PHGSMIINSTANCE pIns = (PHGSMIINSTANCE)RTMemAllocZ(sizeof (HGSMIINSTANCE) + cbContext);
     1537    PHGSMIINSTANCE pIns = (PHGSMIINSTANCE)RTMemAllocZ(sizeof(HGSMIINSTANCE) + cbContext);
    15381538    if (pIns)
    15391539    {
    1540         rc = HGSMIAreaInitialize (&pIns->area, pu8MemBase, cbMem, offBase);
     1540        rc = HGSMIAreaInitialize(&pIns->area, pu8MemBase, cbMem, offBase);
    15411541        if (RT_SUCCESS (rc))
    1542             rc = RTCritSectInit (&pIns->instanceCritSect);
     1542            rc = RTCritSectInit(&pIns->instanceCritSect);
    15431543        if (RT_SUCCESS (rc))
    1544             rc = RTCritSectInit (&pIns->hostHeapCritSect);
     1544            rc = RTCritSectInit(&pIns->hostHeapCritSect);
    15451545        if (RT_SUCCESS (rc))
    1546             rc = RTCritSectInit (&pIns->hostFIFOCritSect);
     1546            rc = RTCritSectInit(&pIns->hostFIFOCritSect);
    15471547        if (RT_SUCCESS (rc))
    15481548        {
     
    15751575}
    15761576
    1577 uint32_t HGSMIReset (PHGSMIINSTANCE pIns)
     1577uint32_t HGSMIReset(PHGSMIINSTANCE pIns)
    15781578{
    15791579    uint32_t flags = 0;
     
    15921592
    15931593#ifdef VBOX_WITH_WDDM
    1594     while(hgsmiProcessGuestCmdCompletion(pIns) != HGSMIOFFSET_VOID)
     1594    while (hgsmiProcessGuestCmdCompletion(pIns) != HGSMIOFFSET_VOID)
    15951595    {}
    15961596#endif
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.h

    r71619 r71651  
    2828typedef struct HGSMIINSTANCE *PHGSMIINSTANCE;
    2929
    30 /* Callback for the guest notification about a new host buffer. */
     30/** Callback for the guest notification about a new host buffer. */
    3131typedef DECLCALLBACK(void) FNHGSMINOTIFYGUEST(void *pvCallback);
    3232typedef FNHGSMINOTIFYGUEST *PFNHGSMINOTIFYGUEST;
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