[FREELDR] LaunchSecondStageLoader(): Always return ESUCCESS if rosload.exe started correctly...

instead of returning an erroneous value, since the rosload.exe entry point
`RunLoader()` doesn't return any value. This allows exiting from rosload.exe
and NOT having the `LaunchSecondStageLoader()` returning 0, for example,
which would then be interpreted as an error condition and showing the
"Unable to load second stage loader." error box.
This commit is contained in:
Hermès Bélusca-Maïto
2026-04-04 21:46:28 +02:00
parent 55f9484b95
commit e87a74f131
+2 -1
View File
@@ -85,7 +85,8 @@ LaunchSecondStageLoader(VOID)
/* Call the entrypoint */
printf("Launching rosload.exe...\n");
EntryPoint = VaToPa(RosloadDTE->EntryPoint);
return (*EntryPoint)();
(*EntryPoint)();
return ESUCCESS;
}
VOID __cdecl BootMain(IN PCCH CmdLine)