diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-29 05:35:16 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-29 05:35:16 +0000 |
commit | 4386f14350fa7d857212cd0619ca3259c227f11a (patch) | |
tree | 34b6a6cedfafdaa58934a0cce32f1246e52eb634 /MdePkg/Library/HiiLib | |
parent | 0276b838a1ccac7868a37b9cc0aa4fde07cae4bb (diff) | |
download | edk2-platforms-4386f14350fa7d857212cd0619ca3259c227f11a.tar.xz |
Fix a bug in the assert condition.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5754 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/HiiLib')
-rw-r--r-- | MdePkg/Library/HiiLib/HiiString.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/HiiLib/HiiString.c b/MdePkg/Library/HiiLib/HiiString.c index c7d11a5761..af867e1a1a 100644 --- a/MdePkg/Library/HiiLib/HiiString.c +++ b/MdePkg/Library/HiiLib/HiiString.c @@ -212,8 +212,8 @@ Out: This function try to retrieve string from String package of current language.
If fails, it try to retrieve string from String package of first language it support.
- If String is NULL, then ASSERT.
If StringSize is NULL, then ASSERT.
+ If String is NULL and *StringSize is not 0, then ASSERT.
If PackageList could not be found in the default HII database, then ASSERT.
If StringId is not found in PackageList, then ASSERT.
@@ -247,8 +247,8 @@ HiiLibGetString ( CHAR8 Lang[RFC_3066_ENTRY_SIZE];
CHAR8 CurrentLang[RFC_3066_ENTRY_SIZE];
- ASSERT (String != NULL);
ASSERT (StringSize != NULL);
+ ASSERT (!(*StringSize != 0 && String == NULL));
ASSERT (IsHiiHandleRegistered (PackageList));
HiiLibGetCurrentLanguage (CurrentLang);
|