From abf3adcd2f37f4e278fc9ef7634ca0c8f5171893 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Sun, 5 Feb 2017 17:31:28 +0300 Subject: picture password bmp and DcsProp can be in secregion on separate flash Tables overlay configuration commands --- Library/PasswordLib/PicturePassword.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Library/PasswordLib/PicturePassword.c') diff --git a/Library/PasswordLib/PicturePassword.c b/Library/PasswordLib/PicturePassword.c index f40b095..c3831ad 100644 --- a/Library/PasswordLib/PicturePassword.c +++ b/Library/PasswordLib/PicturePassword.c @@ -41,8 +41,8 @@ int gSCLocked = 0; // Picture password ////////////////////////////////////////////////////////////////////////// CONST CHAR16* BmpName = L"Test.bmp"; -VOID* Bmp = NULL; -UINTN BmpSize = 0; +VOID* gPictPwdBmp = NULL; +UINTN gPictPwdBmpSize = 0; BLT_HEADER* bltPwd = NULL; UINTN posPictX, posPictY; BLT_HEADER* bltScrn = NULL; @@ -196,7 +196,7 @@ DrawPwdPicture() if (bltPwd != NULL) MEM_FREE(bltPwd); - res = BmpToBlt(Bmp, BmpSize, &bltPwd); + res = BmpToBlt(gPictPwdBmp, gPictPwdBmpSize, &bltPwd); if (EFI_ERROR(res)) { return res; } @@ -287,9 +287,9 @@ AskPictPwdInt( InitSpeaker(); } - if (Bmp == NULL) { + if (gPictPwdBmp == NULL) { if (gPasswordPictureFileName != NULL) { - res = FileLoad(NULL, (CHAR16*)gPasswordPictureFileName, &Bmp, &BmpSize); + res = FileLoad(NULL, (CHAR16*)gPasswordPictureFileName, &gPictPwdBmp, &gPictPwdBmpSize); if (EFI_ERROR(res)) { ERR_PRINT(L"File load - %r\n", res); return; -- cgit v1.2.3