Skip to content

Commit 2593b69

Browse files
committed
exclude double protocol
Signed-off-by: Slice <[email protected]>
1 parent ac34b36 commit 2593b69

File tree

3 files changed

+42
-40
lines changed

3 files changed

+42
-40
lines changed

rEFIt_UEFI/Platform/Injectors.cpp

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -419,23 +419,25 @@ SetPrivateVarProto(void)
419419
&SMCHelperProtocol,
420420
&gAppleSMCStateProtocolGuid,
421421
&SMCStateProtocol,
422+
&gAppleImageCodecProtocolGuid,
423+
&gAppleImageCodec,
422424
NULL
423425
);
424426
if (EFI_ERROR(Status)) {
425427
DBG("Error installing multiple protocol, Status = %s\n", efiStrError(Status));
426428
}
427429

428-
429-
Status = gBS->InstallProtocolInterface (
430-
&gImageHandle,
431-
&gAppleImageCodecProtocolGuid,
432-
EFI_NATIVE_INTERFACE,
433-
(VOID *)&gAppleImageCodec
434-
);
435-
436-
if (EFI_ERROR(Status)) {
437-
DBG("AppleImageCodec: error installing protocol, Status = %s\n", efiStrError(Status));
438-
}
430+
//
431+
// Status = gBS->InstallProtocolInterface (
432+
// &gImageHandle,
433+
// &gAppleImageCodecProtocolGuid,
434+
// EFI_NATIVE_INTERFACE,
435+
// (VOID *)&gAppleImageCodec
436+
// );
437+
//
438+
// if (EFI_ERROR(Status)) {
439+
// DBG("AppleImageCodec: error installing protocol, Status = %s\n", efiStrError(Status));
440+
// }
439441

440442
Status = InstallAggregator();
441443
if (EFI_ERROR(Status)) {

rEFIt_UEFI/gui/REFIT_MENU_SCREEN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ UINTN REFIT_MENU_SCREEN::RunGenericMenu(IN OUT INTN *DefaultEntryIndex, OUT REFI
10211021
break;
10221022
case SCAN_F8:
10231023
// testSVG();
1024-
// testBMP();
1024+
testBMP();
10251025
testEfires();
10261026
break;
10271027

rEFIt_UEFI/libeg/AppleImageCodec.cpp

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -210,31 +210,31 @@ APPLE_IMAGE_CODEC_PROTOCOL gAppleImageCodec = {
210210
};
211211

212212
/** Driver's entry point. Installs our StartImage to detect boot loader start. */
213-
EFI_STATUS
214-
EFIAPI
215-
AppleImageCodecEntrypoint (
216-
IN EFI_HANDLE ImageHandle,
217-
IN EFI_SYSTEM_TABLE *SystemTable
218-
)
219-
{
220-
EFI_STATUS Status;
221-
// EFI_HANDLE NewHandle;
222-
223-
//
224-
// Install instance of Apple image codec protocol for
225-
// PNG files
226-
//
227-
// NewHandle = NULL; // install to a new handle
228-
// Status = gBS->InstallMultipleProtocolInterfaces(&NewHandle, &gAppleImageCodecProtocolGuid, &gAppleImageCodec, NULL);
229-
Status = gBS->InstallProtocolInterface (
230-
&ImageHandle,
231-
&gAppleImageCodecProtocolGuid,
232-
EFI_NATIVE_INTERFACE,
233-
(VOID *)&gAppleImageCodec
234-
);
235-
236-
if (EFI_ERROR(Status)) {
237-
DBG("AppleImageCodec: error installing protocol, Status = %s\n", efiStrError(Status));
238-
}
239-
return Status;
240-
}
213+
//EFI_STATUS
214+
//EFIAPI
215+
//AppleImageCodecEntrypoint (
216+
// IN EFI_HANDLE ImageHandle,
217+
// IN EFI_SYSTEM_TABLE *SystemTable
218+
//)
219+
//{
220+
// EFI_STATUS Status;
221+
//// EFI_HANDLE NewHandle;
222+
//
223+
// //
224+
// // Install instance of Apple image codec protocol for
225+
// // PNG files
226+
// //
227+
//// NewHandle = NULL; // install to a new handle
228+
//// Status = gBS->InstallMultipleProtocolInterfaces(&NewHandle, &gAppleImageCodecProtocolGuid, &gAppleImageCodec, NULL);
229+
// Status = gBS->InstallProtocolInterface (
230+
// &ImageHandle,
231+
// &gAppleImageCodecProtocolGuid,
232+
// EFI_NATIVE_INTERFACE,
233+
// (VOID *)&gAppleImageCodec
234+
// );
235+
//
236+
// if (EFI_ERROR(Status)) {
237+
// DBG("AppleImageCodec: error installing protocol, Status = %s\n", efiStrError(Status));
238+
// }
239+
// return Status;
240+
//}

0 commit comments

Comments
 (0)