diff --git a/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c b/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c index 29d9918..509f930 100644 --- a/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c +++ b/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c @@ -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; } diff --git a/launch.bat b/launch.bat index f7cb2ef..b1e4795 100644 --- a/launch.bat +++ b/launch.bat @@ -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\