mirror of https://github.com/acidanthera/audk.git
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:
parent
2f667c5488
commit
3f4288fe26
|
@ -2979,6 +2979,8 @@ EfiConfigKeywordHandlerSetData (
|
|||
*ProgressErr = KEYWORD_HANDLER_NO_ERROR;
|
||||
|
||||
Done:
|
||||
*Progress = KeywordString + (StringPtr - TempString);
|
||||
|
||||
ASSERT (TempString != NULL);
|
||||
FreePool (TempString);
|
||||
if (NameSpace != NULL) {
|
||||
|
@ -2998,8 +3000,8 @@ 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue