VirtualBox

Changeset 85557 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 30, 2020 1:28:57 PM (4 years ago)
Author:
vboxsync
Message:

DnD: Defined DND_DEFAULT_CHUNK_SIZE and use it where appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDragAndDrop.cpp

    r85536 r85557  
    10351035        rc = Msg.u.v3.uProtocol.GetUInt32(&pCtx->uProtocol); AssertRC(rc);
    10361036
    1037         pCtx->cbMaxChunkSize = _64K; /** @todo Use a scratch buffer on the heap? */
     1037        pCtx->cbMaxChunkSize = DND_DEFAULT_CHUNK_SIZE; /** @todo Use a scratch buffer on the heap? */
    10381038    }
    10391039    else
     
    15241524        return rc;
    15251525
    1526     uint32_t cbBuf = _64K;           /** @todo Make this configurable? */
     1526    uint32_t cbBuf = pCtx->cbMaxChunkSize;
     1527    AssertReturn(cbBuf, VERR_INVALID_PARAMETER);
    15271528    void *pvBuf = RTMemAlloc(cbBuf); /** @todo Make this buffer part of PVBGLR3GUESTDNDCMDCTX? */
    15281529    if (!pvBuf)
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