VirtualBox

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


Ignore:
Timestamp:
May 6, 2020 6:28:29 AM (5 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxService: Also made attribute allocation of VBOXSERVICECTRLSESSIONSTARTUPINFO + VBOXSERVICECTRLPROCSTARTUPINFO dynamic. [build fix] bugref:9320

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlProcess.cpp

    r84150 r84154  
    9393        pStartupInfo->psz##a_Str = RTStrAlloc(a_cb); \
    9494        AssertPtrBreak(pStartupInfo->psz##a_Str); \
    95         pStartupInfo->cb##a_Str  = a_cb; \
     95        pStartupInfo->cb##a_Str  = (uint32_t)a_cb; \
    9696    }
    9797
     
    194194        pStartupInfoDup->psz##a_Str = (char *)RTStrDup(pStartupInfo->psz##a_Str); \
    195195        AssertPtrBreak(pStartupInfoDup->psz##a_Str); \
    196         pStartupInfoDup->cb##a_Str  = strlen(pStartupInfoDup->psz##a_Str) + 1 /* Include terminator */; \
     196        pStartupInfoDup->cb##a_Str  = (uint32_t)strlen(pStartupInfoDup->psz##a_Str) + 1 /* Include terminator */; \
    197197    }
    198198
     
    202202        pStartupInfoDup->psz##a_Str = (char *)RTMemDup(pStartupInfo->psz##a_Str, pStartupInfo->cb##a_Str); \
    203203        AssertPtrBreak(pStartupInfoDup->psz##a_Str); \
    204         pStartupInfoDup->cb##a_Str  = pStartupInfo->cb##a_Str; \
     204        pStartupInfoDup->cb##a_Str  = (uint32_t)pStartupInfo->cb##a_Str; \
    205205    }
    206206
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r84150 r84154  
    10551055        pStartupInfo->psz##a_Str = RTStrAlloc(a_cb); \
    10561056        AssertPtrBreak(pStartupInfo->psz##a_Str); \
    1057         pStartupInfo->cb##a_Str  = a_cb; \
     1057        pStartupInfo->cb##a_Str  = (uint32_t)a_cb; \
    10581058    }
    10591059
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