[ui] report timeout errors for logical drive access

* Also update ChangeLog
This commit is contained in:
Pete Batard 2020-02-12 17:49:29 +00:00
parent 65523bbdf9
commit 70419d31e9
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
3 changed files with 20 additions and 6 deletions

View file

@ -1954,7 +1954,8 @@ DWORD WINAPI FormatThread(void* param)
Sleep(200);
if (!WaitForLogical(DriveIndex, partition_offset[PI_MAIN])) {
uprintf("Logical drive was not found - aborting");
FormatStatus = ERROR_SEVERITY_ERROR | FAC(FACILITY_STORAGE) | ERROR_NO_VOLUME_ID;
if (!IS_ERROR(FormatStatus))
FormatStatus = ERROR_SEVERITY_ERROR | FAC(FACILITY_STORAGE) | ERROR_TIMEOUT;
goto out;
}
CHECK_FOR_USER_CANCEL;