[efi] fix incorrect offset for UEFI:TOGO partition

* Also remove the use of hardcoded value for the size of the UEFI:TOGO
  partition and fix a WDK warning.
This commit is contained in:
Pete Batard 2014-12-21 01:56:36 +00:00
parent a4e12f5c12
commit 3f0e71f3ba
3 changed files with 23 additions and 18 deletions

View file

@ -1552,7 +1552,8 @@ DWORD WINAPI FormatThread(void* param)
// Wait for the logical drive we just created to appear
uprintf("Waiting for logical drive to reappear...\n");
Sleep(200);
WaitForLogical(DriveIndex); // We try to continue even if this fails, just in case
if (!WaitForLogical(DriveIndex))
uprintf("Logical drive was not found!"); // We try to continue even if this fails, just in case
CHECK_FOR_USER_CANCEL;
// If FAT32 is requested and we have a large drive (>32 GB) use