X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FBaseBmpSupportLib%2FBmpSupportLib.c;h=467cd6a58db312b51b85c969b7681a82765df0f9;hp=2c95e91ecc6d734d5d00850226e2d45db7dd6d60;hb=99576ee3fde9228dd5cfedd268f6bc82a0c9f732;hpb=7ff68b5edc9fda1bd64a70c0e21949d566553484 diff --git a/MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c b/MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c index 2c95e91ecc..467cd6a58d 100644 --- a/MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c +++ b/MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c @@ -426,7 +426,7 @@ TranslateBmpToGopBlt ( } - ImageIndex = (UINTN)(Image - ImageHeader); + ImageIndex = (UINTN)Image - (UINTN)ImageHeader; if ((ImageIndex % 4) != 0) { // // Bmp Image starts each row on a 32-bit boundary!