VirtualBox

Changeset 50838 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 21, 2014 9:52:46 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92918
Message:

Additions: return the actual result of certain vbglDriverIOCtl() calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp

    r50837 r50838  
    147147        {
    148148            rc = vbglDriverIOCtl (&pHandleData->driver, VBOXGUEST_IOCTL_HGCM_CONNECT, pData, sizeof (*pData));
    149             if (   RT_SUCCESS(rc)
    150                 && RT_SUCCESS(pData->result))
     149            if (RT_SUCCESS(rc))
     150                rc = pData->result;
     151            if (RT_SUCCESS(rc))
    151152            {
    152153                *pHandle = pHandleData;
    153154                return rc;
    154155            }
     156
     157            vbglDriverClose (&pHandleData->driver);
    155158        }
     159
     160        vbglHGCMHandleFree (pHandleData);
    156161    }
    157     vbglDriverClose (&pHandleData->driver);
    158     vbglHGCMHandleFree (pHandleData);
     162
    159163    return rc;
    160164}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette