VirtualBox

Changeset 50821 in vbox for trunk/src


Ignore:
Timestamp:
Mar 19, 2014 12:36:52 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL/hgcm: fix connect failure

File:
1 edited

Legend:

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

    r40483 r50821  
    9292    rc = vbglDriverIOCtl (&hCtl->driver, VBOXGUEST_IOCTL_HGCM_CONNECT, &info, sizeof (info));
    9393    if (RT_SUCCESS(rc))
    94         *pu32ClientID = info.u32ClientID;
    95     else
    96         *pu32ClientID = 0;
     94    {
     95        rc = info.result;
     96        if (RT_SUCCESS(rc))
     97        {
     98            Assert(info.u32ClientID);
     99            *pu32ClientID = info.u32ClientID;
     100            return rc;
     101        }
     102    }
     103
     104    Assert(RT_FAILURE(rc));
     105    *pu32ClientID = 0;
    97106    return rc;
    98107}
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