[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

@ -129,6 +129,8 @@ static char err_string[256] = {0};
else
safe_sprintf(err_string, sizeof(err_string), "Unknown error 0x%08X", error_code);
}
SetLastError(error_code); // Make sure we don't change the errorcode on exit
return err_string;
}