VirtualBox

Changeset 86033 in vbox for trunk/src


Ignore:
Timestamp:
Sep 6, 2020 8:28:57 AM (4 years ago)
Author:
vboxsync
Message:

Devices/DevQemuFwCfg: Add device emulation implementing QEMUs firmware configuration interface [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevQemuFwCfg.cpp

    r86032 r86033  
    344344    if (RT_SUCCESS(rc))
    345345    {
    346         pThis->u.u32 = strlen(&sz[0]) + 1;
     346        pThis->u.u32 = (uint32_t)strlen(&sz[0]) + 1;
    347347        *pcbItem = sizeof(uint32_t);
    348348    }
     
    365365    int rc = pHlp->pfnCFGMQueryString(pThis->pCfg, pItem->pszCfgmKey, &sz[0], sizeof(sz));
    366366    if (RT_SUCCESS(rc))
    367         *pcbItem = strlen(&sz[0]) + 1;
     367        *pcbItem = (uint32_t)strlen(&sz[0]) + 1;
    368368    else
    369369        LogRel(("QemuFwCfg: Failed to query \"%s\" -> %Rrc\n", pItem->pszCfgmKey, rc));
     
    456456    if (RT_SUCCESS(rc))
    457457    {
    458         size_t cch = strlen(sz) + 1;
     458        uint32_t cch = (uint32_t)strlen(sz) + 1;
    459459        if (off < cch)
    460460        {
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