MdeModulePkg/HiiDatabase: Fix Progress not point to the correct place issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18488 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Eric Dong 2015-09-17 01:08:54 +00:00 committed by ydong10
parent 2f667c5488
commit 3f4288fe26
1 changed files with 7 additions and 3 deletions

View File

@ -2979,6 +2979,8 @@ EfiConfigKeywordHandlerSetData (
*ProgressErr = KEYWORD_HANDLER_NO_ERROR;
Done:
*Progress = KeywordString + (StringPtr - TempString);
ASSERT (TempString != NULL);
FreePool (TempString);
if (NameSpace != NULL) {
@ -2999,7 +3001,7 @@ Done:
if (MultiConfigResp != NULL && MultiConfigResp != ConfigResp) {
FreePool (MultiConfigResp);
}
*Progress = StringPtr;
return Status;
}
@ -3271,6 +3273,8 @@ EfiConfigKeywordHandlerGetData (
*ProgressErr = KEYWORD_HANDLER_NO_ERROR;
Done:
*Progress = KeywordString + (StringPtr - TempString);
if (TempString != NULL) {
FreePool (TempString);
}
@ -3283,6 +3287,6 @@ Done:
if (KeywordData != NULL) {
FreePool (KeywordData);
}
*Progress = StringPtr;
return Status;
}