fixed launch.bat... going to need to push a new release

merge-requests/1/merge
xerox 4 years ago
parent ddf94be5ed
commit b3203a0859

@ -38,7 +38,7 @@ EFI_STATUS EFIAPI UefiMain(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable
EFI_DEVICE_PATH* BootMgfwPath = GetBootMgfwPath();
if (EFI_ERROR((Result = gBS->LoadImage(TRUE, ImageHandle, BootMgfwPath, NULL, NULL, &BootMgfwHandle))))
{
Print(L"failed to load bootmgfw.efi...\n");
Print(L"failed to load bootmgfw.efi... reason -> %r\n", Result);
gBS->Stall(5 * 1000000);
return EFI_ABORTED;
}
@ -50,9 +50,9 @@ EFI_STATUS EFIAPI UefiMain(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable
return Result;
}
if (EFI_ERROR(gBS->StartImage(BootMgfwHandle, NULL, NULL)))
if (EFI_ERROR((Result = gBS->StartImage(BootMgfwHandle, NULL, NULL))))
{
Print(L"Failed to start bootmgfw.efi...\n");
Print(L"Failed to start bootmgfw.efi... reason -> %r\n", Result);
gBS->Stall(5 * 1000000);
return EFI_ABORTED;
}

@ -2,6 +2,7 @@
net session >nul 2>&1
if %errorLevel% == 0 (
mountvol X: /S
attrib -s -h X:\EFI\Microsoft\Boot\bootmgfw.efi
move X:\EFI\Microsoft\Boot\bootmgfw.efi X:\EFI\Microsoft\Boot\bootmgfw.efi.backup
xcopy %~dp0bootmgfw.efi X:\EFI\Microsoft\Boot\
xcopy %~dp0payload.dll X:\EFI\Microsoft\Boot\

Loading…
Cancel
Save