Clean up GenericBdsLib library Instance.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5449 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2008-07-11 06:02:04 +00:00
parent 7b3e2a1b9a
commit 11ef23f9d1
12 changed files with 496 additions and 192 deletions

View File

@@ -14,6 +14,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "InternalBdsLib.h"
/**
Check if we need to save the EFI variable with "ConVarName" as name
as NV type
@param ConVarName The name of the EFI variable.
@retval TRUE Set the EFI variabel as NV type.
@retval FALSE EFI variabel as NV type can be set NonNV.
**/
BOOLEAN
IsNvNeed (
IN CHAR16 *ConVarName
@@ -27,7 +36,7 @@ IsNvNeed (
// If the variable includes "Dev" at last, we consider
// it does not support NV attribute.
//
while (*Ptr) {
while (*Ptr != L'\0') {
Ptr++;
}