mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-19 09:25:12 -04:00
[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:
parent
8d50a8491f
commit
803a4bff1c
12 changed files with 842 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue