Changeset 37431 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/lib
- Timestamp:
- Jun 14, 2011 9:32:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp
r37065 r37431 809 809 { 810 810 LPSTR lpszDevName = (LPSTR)RTMemAllocZ(strlen(lpszName) + sizeof("\\\\.\\")); 811 HANDLE hDev = INVALID_HANDLE_VALUE; 811 812 Assert(lpszDevName); 812 813 if (!lpszDevName) … … 822 823 { 823 824 DWORD cbReturned = 0; 824 HANDLEhDev = CreateFile(lpszDevName, GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);825 hDev = CreateFile(lpszDevName, GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); 825 826 if (hDev == INVALID_HANDLE_VALUE) 826 827 { … … 845 846 } 846 847 } while (0); 848 849 if (hDev != INVALID_HANDLE_VALUE) 850 CloseHandle(hDev); 851 847 852 RTMemFree(lpszDevName); 848 853
Note:
See TracChangeset
for help on using the changeset viewer.