VirtualBox

Changeset 84985 in vbox


Ignore:
Timestamp:
Jun 29, 2020 9:52:37 AM (4 years ago)
Author:
vboxsync
Message:

DnD/VbglR3: Don't use RT_ZERO on non-POD types.

File:
1 edited

Legend:

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

    r84984 r84985  
    7373
    7474    HGCMMsgGetNext Msg;
    75     RT_ZERO(Msg);
    7675    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_GET_NEXT_HOST_MSG, 3);
    7776    Msg.uMsg.SetUInt32(0);
     
    128127
    129128    HGCMMsgHGAction Msg;
    130     RT_ZERO(Msg);
    131 
    132129    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, uMsg, 8);
    133130    Msg.u.v3.uContext.SetUInt32(0);
     
    185182
    186183    HGCMMsgHGLeave Msg;
    187     RT_ZERO(Msg);
    188 
    189184    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_HG_EVT_LEAVE, 1);
    190185    /** @todo Context ID not used yet. */
     
    206201
    207202    HGCMMsgHGCancel Msg;
    208     RT_ZERO(Msg);
    209 
    210203    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_CANCEL, 1);
    211204    /** @todo Context ID not used yet. */
     
    239232
    240233    HGCMMsgHGSendDir Msg;
    241     RT_ZERO(Msg);
    242 
    243234    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_HG_SND_DIR, 4);
    244235    /** @todo Context ID not used yet. */
     
    282273
    283274    HGCMMsgHGSendFileData Msg;
    284     RT_ZERO(Msg);
    285 
    286275    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_HG_SND_FILE_DATA, 5);
    287276    Msg.u.v3.uContext.SetUInt32(0);
     
    330319
    331320    HGCMMsgHGSendFileHdr Msg;
    332     RT_ZERO(Msg);
    333 
    334321    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_HG_SND_FILE_HDR, 6);
    335322    Msg.uContext.SetUInt32(0); /** @todo Not used yet. */
     
    658645
    659646    HGCMMsgHGSendData Msg;
    660     RT_ZERO(Msg);
    661 
    662647    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_HG_SND_DATA, 5);
    663648    Msg.u.v3.uContext.SetUInt32(0);
     
    704689
    705690    HGCMMsgHGSendDataHdr Msg;
    706     RT_ZERO(Msg);
    707691    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_HG_SND_DATA_HDR, 12);
    708692    Msg.uContext.SetUInt32(0);
     
    971955
    972956    HGCMMsgGHReqPending Msg;
    973     RT_ZERO(Msg);
    974 
    975957    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_GH_REQ_PENDING, 2);
    976958    /** @todo Context ID not used yet. */
     
    1014996
    1015997    HGCMMsgGHDropped Msg;
    1016     RT_ZERO(Msg);
    1017 
    1018998    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_GH_EVT_DROPPED, 4);
    1019999    Msg.u.v3.uContext.SetUInt32(0);
     
    11121092         */
    11131093        HGCMMsgConnect Msg;
    1114         RT_ZERO(Msg);
    1115 
    11161094        VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_CONNECT, 3);
    11171095        /** @todo Context ID not used yet. */
     
    13671345
    13681346    HGCMMsgHGAck Msg;
    1369     RT_ZERO(Msg);
    1370 
    13711347    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_HG_ACK_OP, 2);
    13721348    /** @todo Context ID not used yet. */
     
    13951371
    13961372    HGCMMsgHGReqData Msg;
    1397     RT_ZERO(Msg);
    1398 
    13991373    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_HG_REQ_DATA, 3);
    14001374    /** @todo Context ID not used yet. */
     
    14221396
    14231397    HGCMMsgHGProgress Msg;
    1424     RT_ZERO(Msg);
    1425 
    14261398    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_HG_EVT_PROGRESS, 4);
    14271399    /** @todo Context ID not used yet. */
     
    14591431
    14601432    HGCMMsgGHAckPending Msg;
    1461     RT_ZERO(Msg);
    1462 
    14631433    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_GH_ACK_PENDING, 5);
    14641434    /** @todo Context ID not used yet. */
     
    14911461
    14921462    HGCMMsgGHSendDataHdr MsgHdr;
    1493     RT_ZERO(MsgHdr);
    1494 
    14951463    VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, pCtx->uClientID, GUEST_DND_GH_SND_DATA_HDR, 12);
    14961464    MsgHdr.uContext.SetUInt32(0);                           /** @todo Not used yet. */
     
    15761544
    15771545    HGCMMsgGHSendDir Msg;
    1578     RT_ZERO(Msg);
    1579 
    15801546    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_GH_SND_DIR, 4);
    15811547    /** @todo Context ID not used yet. */
     
    16141580
    16151581    HGCMMsgGHSendFileHdr MsgHdr;
    1616     RT_ZERO(MsgHdr);
    1617 
    16181582    VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, pCtx->uClientID, GUEST_DND_GH_SND_FILE_HDR, 6);
    16191583    MsgHdr.uContext.SetUInt32(0);                                                    /* Context ID; unused at the moment. */
     
    16341598         */
    16351599        HGCMMsgGHSendFileData Msg;
    1636         RT_ZERO(Msg);
    1637 
    16381600        VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_GH_SND_FILE_DATA, 5);
    16391601        Msg.u.v3.uContext.SetUInt32(0);
     
    18691831
    18701832    HGCMMsgGHError Msg;
    1871     RT_ZERO(Msg);
    1872 
    18731833    VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_GH_EVT_ERROR, 2);
    18741834    /** @todo Context ID not used yet. */
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