diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-07 12:06:13 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-07 12:06:13 +0000 |
commit | 273bbd31c5f0621e9fbd22572ede433bd139f7be (patch) | |
tree | 76d66b81cf94b15b11d1c9fec4ea03071c984b35 /EdkModulePkg | |
parent | 782eb1682a1afb834cb00648c260a7b4ccf251cb (diff) | |
download | edk2-platforms-273bbd31c5f0621e9fbd22572ede433bd139f7be.tar.xz |
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
Diffstat (limited to 'EdkModulePkg')
-rw-r--r-- | EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Boolean.c | 14 |
1 files 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;
|