VirtualBox

Changeset 52063 in vbox


Ignore:
Timestamp:
Jul 16, 2014 8:19:00 PM (10 years ago)
Author:
vboxsync
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r52062 r52063  
    18621862{
    18631863    LogFlowFunc(("\n"));
    1864     int rc = VINF_SUCCESS;
    1865     void *pvNew = NULL;
     1864    int rc;
    18661865    PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface);
    18671866
    18681867    /* Configured encryption requires locked down memory. */
    18691868    if (pThis->pCfgCrypto)
    1870         rc = RTMemSaferAllocZEx(&pvNew, cb, RTMEMSAFER_F_REQUIRE_NOT_PAGABLE);
     1869        rc = RTMemSaferAllocZEx(ppvNew, cb, RTMEMSAFER_F_REQUIRE_NOT_PAGABLE);
    18711870    else
    18721871    {
    18731872        cb = RT_ALIGN_Z(cb, _4K);
    1874         pvNew = RTMemPageAlloc(cb);
     1873        void *pvNew = RTMemPageAlloc(cb);
    18751874        if (RT_LIKELY(pvNew))
     1875        {
    18761876            *ppvNew = pvNew;
     1877            rc = VINF_SUCCESS;
     1878        }
    18771879        else
    18781880            rc = VERR_NO_MEMORY;
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