]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix check error.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Apr 2009 03:04:24 +0000 (03:04 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Apr 2009 03:04:24 +0000 (03:04 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7996 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/HiiDatabase.c

index 4572254d2c715cc232517e261148907417d36794..a89d91e23382bbe70d2e3a36ead99b2d960f3da1 100644 (file)
@@ -324,7 +324,7 @@ LangCodes3066To639 (
   // Allocate working buffer to contain substring of LangCodes3066.\r
   //\r
   Lang = AllocatePool (AsciiStrSize (LangCodes3066));\r
-  if (Lang != NULL) {\r
+  if (Lang == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r