Changeset 38208 in vbox
- Timestamp:
- Jul 28, 2011 6:20:50 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp
r38206 r38208 766 766 } 767 767 768 bool fFreeNameBuf = true; 768 769 char nameEmptyBuf = '\0'; 769 770 LPSTR lpszName = NULL; … … 771 772 Assert(!!lpszName == !!RT_SUCCESS(rc)); 772 773 if (!lpszName) 774 { 773 775 lpszName = &nameEmptyBuf; 776 fFreeNameBuf = false; 777 } 774 778 775 779 PUSB_CONFIGURATION_DESCRIPTOR pCfgDr = NULL; … … 796 800 if (pCfgDr) 797 801 usbLibDevCfgDrFree(pCfgDr); 798 if (lpszName) 802 if (fFreeNameBuf) 803 { 804 Assert(lpszName); 799 805 usbLibDevStrFree(lpszName); 806 } 800 807 if (pList) 801 808 usbLibDevStrDrEntryFreeList(pList);
Note:
See TracChangeset
for help on using the changeset viewer.