VirtualBox

Changeset 430 in vbox for trunk/src


Ignore:
Timestamp:
Jan 30, 2007 10:14:48 AM (18 years ago)
Author:
vboxsync
Message:

The VBVA command record must be marked as partial when it is being created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/xgraphics/vboxutils.c

    r374 r430  
    228228                "Switching to unaccelerated mode.\n");
    229229        pRecord = &pMem->aRecords[pMem->indexRecordFree];
     230        /* Mark the record as being updated. */
     231        pRecord->cbRecord = VBVA_F_RECORD_PARTIAL;
    230232        pMem->indexRecordFree = indexRecordNext;
    231233        /* Compute how many bytes we have in the ring buffer. */
     
    277279            pMem->off32Free = u32Second;
    278280        }
    279         pRecord->cbRecord = sizeof(cmdHdr);
     281        pRecord->cbRecord += sizeof(cmdHdr);
     282        /* Mark the record completed. */
     283        pRecord->cbRecord &= ~VBVA_F_RECORD_PARTIAL;
    280284    }
    281285}
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