VirtualBox

Changeset 72857 in vbox for trunk


Ignore:
Timestamp:
Jul 4, 2018 9:47:12 AM (6 years ago)
Author:
vboxsync
Message:

ExtPacks/VNC: the size is VNC_PORTSSIZE not sizeof(VNC_PORTSSIZE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VNC/VBoxVNC.cpp

    r69500 r72857  
    313313    {
    314314        const char szFeatName[] = "Property/TCP/Ports";
    315         const uint32_t featLen = sizeof(VRDEFEATURE) + RT_MAX(sizeof(VNC_PORTSSIZE), sizeof(szFeatName)) - 1;
     315        const uint32_t featLen = sizeof(VRDEFEATURE) + RT_MAX(VNC_PORTSSIZE, sizeof(szFeatName)) - 1;
    316316        VRDEFEATURE *feature = (VRDEFEATURE *)RTMemTmpAlloc(featLen);
    317317        feature->u32ClientId = 0;
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