VirtualBox

Changeset 31939 in vbox for trunk


Ignore:
Timestamp:
Aug 24, 2010 7:06:56 PM (14 years ago)
Author:
vboxsync
Message:

VBoxUSB: fixed solaris regression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/solaris/USBLib-solaris.cpp

    r31898 r31939  
    101101
    102102    ASMAtomicIncU32(&g_cUsers);
    103 #ifdef VBOX_WITH_NEW_USB_CODE_ON_SOLARIS
    104103    /*
    105104     * Check the USBMonitor version.
     
    131130        return rc;
    132131    }
    133 #endif
    134132
    135133    return VINF_SUCCESS;
     
    192190
    193191
    194 #ifdef VBOX_WITH_NEW_USB_CODE_ON_SOLARIS
    195192USBLIB_DECL(int) USBLibGetClientInfo(char *pszDeviceIdent, char **ppszClientPath, int *pInstance)
    196193{
     
    221218    return rc;
    222219}
    223 
    224 #else
    225 
    226 USBLIB_DECL(int) USBLibDeviceInstance(char *pszDevicePath, int *pInstance)
    227 {
    228     LogFlow((USBLIBR3 ":USBLibDeviceInstance pszDevicePath=%s pInstance=%p\n", pszDevicePath, pInstance));
    229 
    230     size_t cbReq = sizeof(VBOXUSBREQ_DEVICE_INSTANCE) + strlen(pszDevicePath);
    231     VBOXUSBREQ_DEVICE_INSTANCE *pReq = (VBOXUSBREQ_DEVICE_INSTANCE *)RTMemTmpAllocZ(cbReq);
    232     if (RT_UNLIKELY(!pReq))
    233         return VERR_NO_MEMORY;
    234 
    235     pReq->pInstance = pInstance;
    236     strncpy(pReq->szDevicePath, pszDevicePath, strlen(pszDevicePath));
    237 
    238     int rc = usblibDoIOCtl(VBOXUSBMON_IOCTL_DEVICE_INSTANCE, pReq, cbReq);
    239     if (RT_FAILURE(rc))
    240         LogRel((USBLIBR3 ":VBOXUSBMON_IOCTL_DEVICE_INSTANCE failed! rc=%Rrc\n", rc));
    241 
    242     RTMemFree(pReq);
    243     return rc;
    244 }
    245 
    246 #endif
    247220
    248221
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