[core] SMART/ATA over USB initial support

* This is meant to be used as part of #219
* Also improve WindowsErrorString() so that it doesn't alter the current errcode
This commit is contained in:
Pete Batard 2013-11-13 01:07:32 +00:00
parent 8d50a8491f
commit 803a4bff1c
12 changed files with 842 additions and 10 deletions

View file

@ -730,6 +730,8 @@ static BOOL GetUSBDevices(DWORD devnum)
continue;
}
// Identify(hDrive);
if (GetDriveLabel(device_number.DeviceNumber + DRIVE_INDEX_MIN, &drive_letter, &label)) {
// Must ensure that the combo box is UNSORTED for indexes to be the same
StrArrayAdd(&DriveID, buffer);