diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-13 03:30:59 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-13 03:30:59 +0000 |
commit | 0c16f340a867d1636ef776dae034c48c95720386 (patch) | |
tree | fc08f32cb2ebe67c639be665705ca27f9d9c0844 /IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c | |
parent | 09f8b4e251427d009f0b9a32b7265d7b4b8a5caa (diff) | |
download | edk2-platforms-0c16f340a867d1636ef776dae034c48c95720386.tar.xz |
Minor code enhancement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9724 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c index ad9eb807de..73d36088a5 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c @@ -1062,7 +1062,8 @@ BOpt_GetBootOptions ( FreePool (HiiString);
} else {
NewLoadContext->Description = AllocateZeroPool (StrSize((UINT16*)LoadOptionPtr));
- StrCpy(NewLoadContext->Description, (UINT16*)LoadOptionPtr);
+ ASSERT (NewLoadContext->Description != NULL);
+ StrCpy (NewLoadContext->Description, (UINT16*)LoadOptionPtr);
}
ASSERT (NewLoadContext->Description != NULL);
|