VirtualBox

Changeset 38208 in vbox


Ignore:
Timestamp:
Jul 28, 2011 6:20:50 AM (13 years ago)
Author:
vboxsync
Message:

usb/win: yet another fix, sigh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp

    r38206 r38208  
    766766    }
    767767
     768    bool fFreeNameBuf = true;
    768769    char nameEmptyBuf = '\0';
    769770    LPSTR lpszName = NULL;
     
    771772    Assert(!!lpszName == !!RT_SUCCESS(rc));
    772773    if (!lpszName)
     774    {
    773775        lpszName = &nameEmptyBuf;
     776        fFreeNameBuf = false;
     777    }
    774778
    775779    PUSB_CONFIGURATION_DESCRIPTOR pCfgDr = NULL;
     
    796800    if (pCfgDr)
    797801        usbLibDevCfgDrFree(pCfgDr);
    798     if (lpszName)
     802    if (fFreeNameBuf)
     803    {
     804        Assert(lpszName);
    799805        usbLibDevStrFree(lpszName);
     806    }
    800807    if (pList)
    801808        usbLibDevStrDrEntryFreeList(pList);
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