VirtualBox

Changeset 99545 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 27, 2023 12:31:56 PM (20 months ago)
Author:
vboxsync
Message:

Devices/DevQemuFwCfg: Fixes, bugref:10431

File:
1 edited

Legend:

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

    r99543 r99545  
    497497            PDMDevHlpMMHeapFree(pThis->pDevIns, pszFilePath);
    498498        }
     499        else if (rc == VERR_CFGM_VALUE_NOT_FOUND)
     500        {
     501            pThis->u.u32 = 0;
     502            *pcbItem     = sizeof(uint32_t);
     503            rc = VINF_SUCCESS;
     504        }
    499505        else
    500506            LogRel(("QemuFwCfg: Failed to query \"%s\" -> %Rrc\n", pItem->pszCfgmKey, rc));
    501507    }
    502508
    503     if (RT_SUCCESS(rc))
     509    if (   RT_SUCCESS(rc)
     510        && hVfsFile != NIL_RTVFSFILE)
    504511    {
    505512        uint64_t cbFile = 0;
     
    541548        pThis->u.u32 = (uint32_t)strlen(&sz[0]) + 1;
    542549        *pcbItem = sizeof(uint32_t);
     550    }
     551    else if (rc == VERR_CFGM_VALUE_NOT_FOUND)
     552    {
     553        pThis->u.u32 = 0;
     554        *pcbItem = sizeof(uint32_t);
     555        rc = VINF_SUCCESS;
    543556    }
    544557    else
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