// For Name/Value type, Skip the ConfigHdr part.\r
//\r
EndStr = StrStr (Progress, L"PATH=");\r
+ ASSERT (EndStr != NULL);\r
while (*EndStr != '&') {\r
EndStr++;\r
}\r
// For Buffer type, Skip the ConfigHdr part.\r
//\r
EndStr = StrStr (Progress, L"&OFFSET=");\r
+ ASSERT (EndStr != NULL);\r
*EndStr = '\0';\r
}\r
\r
// here, just keep the "Fred" string.\r
//\r
EndStr = StrStr (Progress, L"=");\r
+ ASSERT (EndStr != NULL);\r
*EndStr = '\0';\r
} else {\r
//\r
// here, just keep the "OFFSET=0x####&WIDTH=0x####" string.\r
//\r
EndStr = StrStr (Progress, L"&VALUE=");\r
+ ASSERT (EndStr != NULL);\r
*EndStr = '\0';\r
}\r
\r
}\r
\r
CopyMem (&Question->HiiValue, &BackUpValue, sizeof (EFI_HII_VALUE));\r
- CopyMem (Question->BufferValue, BackUpBuffer, BufferWidth);\r
-\r
if (BackUpBuffer != NULL) {\r
+ CopyMem (Question->BufferValue, BackUpBuffer, BufferWidth);\r
FreePool (BackUpBuffer);\r
}\r
\r