[core] work around Windows 10 CU potentially selecting the UEFI:NTFS partition for formatting

* Should only happen with Windows 10 Creator Update (1703)
* Closes #931
* Also silence the flow of bcdboot benign errors on WinToGo creation (unless USB Debug is enabled)
* Also ensure WaitForLogical() will not actually spends 15 seconds max before giving up
This commit is contained in:
Pete Batard 2017-04-11 22:15:05 +01:00
parent 42e8d714e8
commit caa9b06426
4 changed files with 24 additions and 12 deletions

View file

@ -294,7 +294,6 @@ const char* _StrError(DWORD error_code)
case ERROR_NOT_READY:
return lmprintf(MSG_079);
default:
uprintf("Unknown error: %08X\n", error_code);
SetLastError(error_code);
return WindowsErrorString();
}