/** @file\r
+This is an example of how a driver might export data to the HII protocol to be\r
+later utilized by the Setup Protocol\r
+\r
Copyright (c) 2004 - 2008, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
-Module Name:\r
- DriverSample.c\r
-\r
-Abstract:\r
-\r
- This is an example of how a driver might export data to the HII protocol to be\r
- later utilized by the Setup Protocol\r
-\r
-\r
**/\r
\r
\r
\r
CopyMem (Password, Buffer, MaxSize);\r
\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return ;\r
}\r
\r
\r
Status = HiiLibGetString (PrivateData->HiiHandle[0], StringId, Password, &BufferSize);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Password);\r
+ FreePool (Password);\r
return Status;\r
}\r
\r
Status = EFI_SUCCESS;\r
}\r
\r
- gBS->FreePool (Password);\r
- gBS->FreePool (EncodedPassword);\r
+ FreePool (Password);\r
+ FreePool (EncodedPassword);\r
\r
return Status;\r
}\r
NULL\r
);\r
}\r
- gBS->FreePool (Configuration);\r
+ FreePool (Configuration);\r
\r
//\r
// Set password\r
TRUE, // Append or replace\r
&UpdateData // Dynamic created opcodes\r
);\r
- gBS->FreePool (IfrOptionList);\r
+ FreePool (IfrOptionList);\r
IfrLibFreeUpdateData (&UpdateData);\r
break;\r
\r
DriverHandle[0],\r
&HiiHandle[0]\r
);\r
- gBS->FreePool (PackageList);\r
+ FreePool (PackageList);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
DriverHandle[1],\r
&HiiHandle[1]\r
);\r
- gBS->FreePool (PackageList);\r
+ FreePool (PackageList);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r