From f2e878683655b885f8ab2d365a40993ef942dea7 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Sat, 31 Dec 2016 13:49:59 +0300 Subject: DcsProp configuration keys AutoLogin AutoPassword AuthorizeProgress AuthStartMsg AuthErrorMsg Random Authorization retry bug fix --- Library/DcsCfgLib/DcsRandom.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Library/DcsCfgLib') diff --git a/Library/DcsCfgLib/DcsRandom.c b/Library/DcsCfgLib/DcsRandom.c index 084a8cf..eceba8d 100644 --- a/Library/DcsCfgLib/DcsRandom.c +++ b/Library/DcsCfgLib/DcsRandom.c @@ -68,13 +68,14 @@ RndFileInit( ) { EFI_STATUS res = EFI_NOT_FOUND; - ZeroMem(rnd, sizeof(DCS_RND)); - rnd->Type = RndTypeFile; - rnd->GetBytes = RndFileGetBytes; - rnd->Prepare = RndFilePrepare; if (Context != NULL) { + ZeroMem(rnd, sizeof(DCS_RND)); + rnd->Type = RndTypeFile; + rnd->GetBytes = RndFileGetBytes; + rnd->Prepare = RndFilePrepare; rnd->State.File.Data = Context; rnd->State.File.Size = ContextSize; + res = EFI_SUCCESS; } return res; } -- cgit v1.2.3