On 08/02/2023 08:03, Alireza Banejad wrote:
Below is how I use the HandleProtocol function:

   Status = gBS->HandleProtocol (
                   gST->ConsoleOutHandle,
                   &gEfiGraphicsOutputProtocolGuid,
                   (VOID **)&GraphicsOutput
                   );

You are querying only the ConsoleOutHandle, which is not necessarily where the GOP will be installed.

Use LocateProtocol() to find the protocol instance instead:


  Status = gBS->LocateProtocol(&gEfiGraphicsOutputProtocolGuid, NULL,
                               (VOID **)&GraphicsOutput);

HTH,

Michael



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99790): https://edk2.groups.io/g/devel/message/99790
Mute This Topic: https://groups.io/mt/96810830/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to