Fix the wrong usage of UnicodeValueToString function

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@824 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2006-07-07 12:06:13 +00:00
parent 782eb1682a
commit 273bbd31c5

View File

@ -456,7 +456,7 @@ Returns:
UINT16 MapValue; UINT16 MapValue;
UINT16 MapValue2; UINT16 MapValue2;
UINTN SizeOfVariable; UINTN SizeOfVariable;
CHAR16 VariableName[40]; CHAR16 VariableName[MAXIMUM_VALUE_CHARACTERS];
VOID *VariableData; VOID *VariableData;
EFI_VARIABLE_DEFINITION *VariableDefinition; EFI_VARIABLE_DEFINITION *VariableDefinition;
EFI_STATUS Status; EFI_STATUS Status;
@ -512,7 +512,7 @@ Returns:
VariableName, VariableName,
FALSE, FALSE,
(UINTN) (*PIterator)->QuestionId1, (UINTN) (*PIterator)->QuestionId1,
(sizeof (VariableName) / sizeof (VariableName[0])) (sizeof (VariableName) / sizeof (VariableName[0])) - 1
); );
SizeOfVariable = 0; SizeOfVariable = 0;
@ -672,7 +672,7 @@ Returns:
UINT16 MapValue; UINT16 MapValue;
UINT16 MapValue2; UINT16 MapValue2;
UINTN SizeOfVariable; UINTN SizeOfVariable;
CHAR16 VariableName[40]; CHAR16 VariableName[MAXIMUM_VALUE_CHARACTERS];
VOID *VariableData; VOID *VariableData;
EFI_STATUS Status; EFI_STATUS Status;
UINT16 Id; UINT16 Id;
@ -811,7 +811,7 @@ Returns:
VariableName, VariableName,
FALSE, FALSE,
(UINTN) Iterator->QuestionId1, (UINTN) Iterator->QuestionId1,
(sizeof (VariableName) / sizeof (VariableName[0])) (sizeof (VariableName) / sizeof (VariableName[0])) - 1
); );
SizeOfVariable = 0; SizeOfVariable = 0;
@ -944,7 +944,7 @@ Returns:
VariableName, VariableName,
FALSE, FALSE,
(UINTN) Iterator->QuestionId1, (UINTN) Iterator->QuestionId1,
(sizeof (VariableName) / sizeof (VariableName[0])) (sizeof (VariableName) / sizeof (VariableName[0])) - 1
); );
SizeOfVariable = 0; SizeOfVariable = 0;
@ -1080,7 +1080,7 @@ Returns:
VariableName, VariableName,
FALSE, FALSE,
(UINTN) Iterator->QuestionId1, (UINTN) Iterator->QuestionId1,
(sizeof (VariableName) / sizeof (VariableName[0])) (sizeof (VariableName) / sizeof (VariableName[0])) - 1
); );
SizeOfVariable = 0; SizeOfVariable = 0;
@ -1228,7 +1228,7 @@ Returns:
VariableName, VariableName,
FALSE, FALSE,
(UINTN) Iterator->QuestionId1, (UINTN) Iterator->QuestionId1,
(sizeof (VariableName) / sizeof (VariableName[0])) (sizeof (VariableName) / sizeof (VariableName[0])) - 1
); );
SizeOfVariable = 0; SizeOfVariable = 0;