diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-21 06:59:58 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-21 06:59:58 +0000 |
commit | f4113e1fdb95c35145a86067c82267610625de74 (patch) | |
tree | 4efb6f59e9017229404781f2dcbc082178f21503 /MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | |
parent | e38fc273849da854be2c9392b5e1bc3178f7f0bc (diff) | |
download | edk2-platforms-f4113e1fdb95c35145a86067c82267610625de74.tar.xz |
1) Remove the variable initalization in declaration.
2) Change all gBS->FreePool to use the MdePkg/BaseLib's FreePool.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6662 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Expression.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c index eb109f4dfc..a56c7318b4 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -79,7 +79,7 @@ GrowStack ( //
// Free The Old Stack
//
- gBS->FreePool (*Stack);
+ FreePool (*Stack);
}
//
@@ -650,7 +650,7 @@ IfrToUint ( // BUGBUG: Need handle decimal string
//
}
- gBS->FreePool (String);
+ FreePool (String);
} else {
CopyMem (Result, &Value, sizeof (EFI_HII_VALUE));
}
@@ -949,7 +949,7 @@ IfrMid ( Result->Type = EFI_IFR_TYPE_STRING;
Result->Value.string = NewString (SubString, FormSet->HiiHandle);
- gBS->FreePool (String);
+ FreePool (String);
return Status;
}
@@ -1271,14 +1271,14 @@ CompareHiiValue ( Str2 = GetToken (Value2->Value.string, HiiHandle);
if (Str2 == NULL) {
- gBS->FreePool (Str1);
+ FreePool (Str1);
return EFI_INVALID_PARAMETER;
}
Result = StrCmp (Str1, Str2);
- gBS->FreePool (Str1);
- gBS->FreePool (Str2);
+ FreePool (Str1);
+ FreePool (Str2);
return Result;
}
@@ -1525,7 +1525,7 @@ EvaluateExpression ( Value->Type = EFI_IFR_TYPE_NUM_SIZE_64;
Value->Value.u64 = StrLen (StrPtr);
- gBS->FreePool (StrPtr);
+ FreePool (StrPtr);
break;
case EFI_IFR_NOT_OP:
@@ -1589,7 +1589,7 @@ EvaluateExpression ( } else {
Index = (UINT16) Value->Value.u64;
Value->Value.string = Index;
- gBS->FreePool (StrPtr);
+ FreePool (StrPtr);
}
break;
@@ -1629,7 +1629,7 @@ EvaluateExpression ( } else {
Value->Value.b = FALSE;
}
- gBS->FreePool (StrPtr);
+ FreePool (StrPtr);
Value->Type = EFI_IFR_TYPE_BOOLEAN;
}
break;
@@ -1669,7 +1669,7 @@ EvaluateExpression ( mUnicodeCollation->StrUpr (mUnicodeCollation, StrPtr);
}
Value->Value.string = NewString (StrPtr, FormSet->HiiHandle);
- gBS->FreePool (StrPtr);
+ FreePool (StrPtr);
break;
case EFI_IFR_BITWISE_NOT_OP:
|