From 62c236c065720ee4ac7d9832aa806cd5f8269552 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Wed, 1 Apr 2009 03:04:24 +0000 Subject: [PATCH] Fix check error. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7996 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Compatibility/FrameworkHiiOnUefiHiiThunk/HiiDatabase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/HiiDatabase.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/HiiDatabase.c index 4572254d2c..a89d91e233 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/HiiDatabase.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/HiiDatabase.c @@ -324,7 +324,7 @@ LangCodes3066To639 ( // Allocate working buffer to contain substring of LangCodes3066. // Lang = AllocatePool (AsciiStrSize (LangCodes3066)); - if (Lang != NULL) { + if (Lang == NULL) { return EFI_OUT_OF_RESOURCES; }