mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
Update function comment and use MdePkg Library FreePool function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6822 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
53dff89953
commit
53cf48e083
@ -1,4 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
This is an example of how a driver might export data to the HII protocol to be
|
||||||
|
later utilized by the Setup Protocol
|
||||||
|
|
||||||
Copyright (c) 2004 - 2008, Intel Corporation
|
Copyright (c) 2004 - 2008, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
@ -8,15 +11,6 @@ http://opensource.org/licenses/bsd-license.php
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
DriverSample.c
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
This is an example of how a driver might export data to the HII protocol to be
|
|
||||||
later utilized by the Setup Protocol
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
@ -59,7 +53,7 @@ EncodePassword (
|
|||||||
|
|
||||||
CopyMem (Password, Buffer, MaxSize);
|
CopyMem (Password, Buffer, MaxSize);
|
||||||
|
|
||||||
gBS->FreePool (Buffer);
|
FreePool (Buffer);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +123,7 @@ ValidatePassword (
|
|||||||
|
|
||||||
Status = HiiLibGetString (PrivateData->HiiHandle[0], StringId, Password, &BufferSize);
|
Status = HiiLibGetString (PrivateData->HiiHandle[0], StringId, Password, &BufferSize);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
gBS->FreePool (Password);
|
FreePool (Password);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,8 +142,8 @@ ValidatePassword (
|
|||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
gBS->FreePool (Password);
|
FreePool (Password);
|
||||||
gBS->FreePool (EncodedPassword);
|
FreePool (EncodedPassword);
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
@ -225,7 +219,7 @@ SetPassword (
|
|||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
gBS->FreePool (Configuration);
|
FreePool (Configuration);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set password
|
// Set password
|
||||||
@ -568,7 +562,7 @@ DriverCallback (
|
|||||||
TRUE, // Append or replace
|
TRUE, // Append or replace
|
||||||
&UpdateData // Dynamic created opcodes
|
&UpdateData // Dynamic created opcodes
|
||||||
);
|
);
|
||||||
gBS->FreePool (IfrOptionList);
|
FreePool (IfrOptionList);
|
||||||
IfrLibFreeUpdateData (&UpdateData);
|
IfrLibFreeUpdateData (&UpdateData);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -805,7 +799,7 @@ DriverSampleInit (
|
|||||||
DriverHandle[0],
|
DriverHandle[0],
|
||||||
&HiiHandle[0]
|
&HiiHandle[0]
|
||||||
);
|
);
|
||||||
gBS->FreePool (PackageList);
|
FreePool (PackageList);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
@ -836,7 +830,7 @@ DriverSampleInit (
|
|||||||
DriverHandle[1],
|
DriverHandle[1],
|
||||||
&HiiHandle[1]
|
&HiiHandle[1]
|
||||||
);
|
);
|
||||||
gBS->FreePool (PackageList);
|
FreePool (PackageList);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user