mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-12 09:54:36 +01:00
loadOptionsW was destroyed before call to StartImage.
This commit is contained in:
parent
a188e19f02
commit
2a5571d032
@ -205,6 +205,7 @@ static EFI_STATUS StartEFILoadedImage(IN EFI_HANDLE ChildImageHandle,
|
|||||||
EFI_LOADED_IMAGE_PROTOCOL *ChildLoadedImage;
|
EFI_LOADED_IMAGE_PROTOCOL *ChildLoadedImage;
|
||||||
CHAR16 ErrorInfo[256];
|
CHAR16 ErrorInfo[256];
|
||||||
// CHAR16 *FullLoadOptions = NULL;
|
// CHAR16 *FullLoadOptions = NULL;
|
||||||
|
XStringW loadOptionsW; // This has to be declared here, so it's not be freed before calling StartImage
|
||||||
|
|
||||||
// DBG("Starting %ls\n", ImageTitle);
|
// DBG("Starting %ls\n", ImageTitle);
|
||||||
if (ErrorInStep != NULL) {
|
if (ErrorInStep != NULL) {
|
||||||
@ -225,7 +226,6 @@ static EFI_STATUS StartEFILoadedImage(IN EFI_HANDLE ChildImageHandle,
|
|||||||
goto bailout_unload;
|
goto bailout_unload;
|
||||||
}
|
}
|
||||||
|
|
||||||
XStringW loadOptionsW;
|
|
||||||
if (LoadOptionsPrefix != NULL) {
|
if (LoadOptionsPrefix != NULL) {
|
||||||
// NOTE: That last space is also added by the EFI shell and seems to be significant
|
// NOTE: That last space is also added by the EFI shell and seems to be significant
|
||||||
// when passing options to Apple's boot.efi...
|
// when passing options to Apple's boot.efi...
|
||||||
@ -1974,11 +1974,7 @@ RefitMain (IN EFI_HANDLE ImageHandle,
|
|||||||
construct_globals_objects(); // do this after SelfLoadedImage is initialized
|
construct_globals_objects(); // do this after SelfLoadedImage is initialized
|
||||||
#ifdef JIEF_DEBUG
|
#ifdef JIEF_DEBUG
|
||||||
all_tests();
|
all_tests();
|
||||||
|
// PauseForKey(L"press\n");
|
||||||
printf("StrCmp(L\"aab\", L\"aac\")=%d\n", StrCmp(L"aac", L"aab") > 0);
|
|
||||||
printf("StrCmp(L\"aab\"_XSW, L\"aac\"_XSW)=%d\n", L"aac"_XSW > L"aab"_XSW);
|
|
||||||
|
|
||||||
PauseForKey(L"press\n");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//dumping SETTING structure
|
//dumping SETTING structure
|
||||||
|
Loading…
Reference in New Issue
Block a user