From 273bbd31c5f0621e9fbd22572ede433bd139f7be Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 7 Jul 2006 12:06:13 +0000 Subject: [PATCH] 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 --- .../UserInterface/SetupBrowser/Dxe/Boolean.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Boolean.c b/EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Boolean.c index c7bcb88fb2..122da065a9 100644 --- a/EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Boolean.c +++ b/EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Boolean.c @@ -456,7 +456,7 @@ Returns: UINT16 MapValue; UINT16 MapValue2; UINTN SizeOfVariable; - CHAR16 VariableName[40]; + CHAR16 VariableName[MAXIMUM_VALUE_CHARACTERS]; VOID *VariableData; EFI_VARIABLE_DEFINITION *VariableDefinition; EFI_STATUS Status; @@ -512,7 +512,7 @@ Returns: VariableName, FALSE, (UINTN) (*PIterator)->QuestionId1, - (sizeof (VariableName) / sizeof (VariableName[0])) + (sizeof (VariableName) / sizeof (VariableName[0])) - 1 ); SizeOfVariable = 0; @@ -672,7 +672,7 @@ Returns: UINT16 MapValue; UINT16 MapValue2; UINTN SizeOfVariable; - CHAR16 VariableName[40]; + CHAR16 VariableName[MAXIMUM_VALUE_CHARACTERS]; VOID *VariableData; EFI_STATUS Status; UINT16 Id; @@ -811,7 +811,7 @@ Returns: VariableName, FALSE, (UINTN) Iterator->QuestionId1, - (sizeof (VariableName) / sizeof (VariableName[0])) + (sizeof (VariableName) / sizeof (VariableName[0])) - 1 ); SizeOfVariable = 0; @@ -944,7 +944,7 @@ Returns: VariableName, FALSE, (UINTN) Iterator->QuestionId1, - (sizeof (VariableName) / sizeof (VariableName[0])) + (sizeof (VariableName) / sizeof (VariableName[0])) - 1 ); SizeOfVariable = 0; @@ -1080,7 +1080,7 @@ Returns: VariableName, FALSE, (UINTN) Iterator->QuestionId1, - (sizeof (VariableName) / sizeof (VariableName[0])) + (sizeof (VariableName) / sizeof (VariableName[0])) - 1 ); SizeOfVariable = 0; @@ -1228,7 +1228,7 @@ Returns: VariableName, FALSE, (UINTN) Iterator->QuestionId1, - (sizeof (VariableName) / sizeof (VariableName[0])) + (sizeof (VariableName) / sizeof (VariableName[0])) - 1 ); SizeOfVariable = 0; -- 2.39.2