VirtualBox

Changeset 59855 in vbox for trunk


Ignore:
Timestamp:
Feb 26, 2016 3:43:18 PM (9 years ago)
Author:
vboxsync
Message:

DnD/DnDURIList: Use uint64_t for counts/sizes, as we also want to handle bigger stuff on 32-bit guests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/DragAndDrop.h

    r59828 r59855  
    205205    int RootFromURIData(const void *pvData, size_t cbData, uint32_t fFlags);
    206206    RTCString RootToString(const RTCString &strPathBase = "", const RTCString &strSeparator = "\r\n") const;
    207     size_t RootCount(void) const { return m_lstRoot.size(); }
    208     uint32_t TotalCount(void) const { return m_cTotal; }
    209     size_t TotalBytes(void) const { return m_cbTotal; }
     207    uint64_t RootCount(void) const { return m_lstRoot.size(); }
     208    uint64_t TotalCount(void) const { return m_cTotal; }
     209    uint64_t TotalBytes(void) const { return m_cbTotal; }
    210210
    211211protected:
     
    225225    RTCList<DnDURIObject *> m_lstTree;
    226226    /** Total number of all URI objects. */
    227     uint32_t                m_cTotal; /** @todo Really needed? m_lstTree.size()? */
     227    uint64_t                m_cTotal;
    228228    /** Total size of all URI objects, that is, the file
    229      *  size of all objects (in bytes). */
    230     size_t                  m_cbTotal;
     229     *  size of all objects (in bytes).
     230     *  Note: Do *not* size_t here, as we also want to support large files
     231     *        on 32-bit guests. */
     232    uint64_t                m_cbTotal;
    231233};
    232234#endif /* ___VBox_GuestHost_DragAndDrop_h */
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