diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-08 15:21:21 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-08 15:21:21 +0000 |
commit | 4c29d43304de904175ffa3b771533f0dd93beff9 (patch) | |
tree | ceed04bdfbe2c188c7f06fa449baed328d62bd99 | |
parent | 03e772c322f7364c4721e1bb4eb041ddb0d319e9 (diff) | |
download | edk2-4c29d43304de904175ffa3b771533f0dd93beff9.zip edk2-4c29d43304de904175ffa3b771533f0dd93beff9.tar.gz edk2-4c29d43304de904175ffa3b771533f0dd93beff9.tar.bz2 |
fix a bug in Service.c
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@841 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | EdkModulePkg/Universal/PCD/Dxe/Service.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/EdkModulePkg/Universal/PCD/Dxe/Service.c b/EdkModulePkg/Universal/PCD/Dxe/Service.c index a2706d0..1a377fe 100644 --- a/EdkModulePkg/Universal/PCD/Dxe/Service.c +++ b/EdkModulePkg/Universal/PCD/Dxe/Service.c @@ -124,7 +124,7 @@ GetWorker ( // It is a pointer type. So get the MaxSize reserved for
// this PCD entry.
//
- GetPtrTypeSize (TokenNumber, &GetSize);
+ GetPtrTypeSize (TmpTokenNumber, &GetSize);
}
CopyMem (VaraiableDefaultBuffer, Data + VariableHead->Offset, GetSize);
FreePool (Data);
@@ -630,7 +630,7 @@ SetWorker ( return EFI_INVALID_PARAMETER;
case PCD_TYPE_STRING:
- if (SetPtrTypeSize (TokenNumber, Size)) {
+ if (SetPtrTypeSize (TmpTokenNumber, Size)) {
CopyMem (&StringTable[*((UINT16 *)InternalData)], Data, *Size);
return EFI_SUCCESS;
} else {
@@ -639,7 +639,7 @@ SetWorker ( case PCD_TYPE_HII:
if (PtrType) {
- if (!SetPtrTypeSize (TokenNumber, Size)) {
+ if (!SetPtrTypeSize (TmpTokenNumber, Size)) {
return EFI_INVALID_PARAMETER;
}
}
@@ -662,13 +662,9 @@ SetWorker ( return Status;
}
- //
- // Bug Bug: Please implement this
- //
-
case PCD_TYPE_DATA:
if (PtrType) {
- if (SetPtrTypeSize (TokenNumber, Size)) {
+ if (SetPtrTypeSize (TmpTokenNumber, Size)) {
CopyMem (InternalData, Data, *Size);
return EFI_SUCCESS;
} else {
|