Fix the bug that PCD driver treat StringTableIndex as UINT8 value but in fact it is UINT16 value.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8412 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-05-31 05:44:48 +00:00
parent 1f53f7bb99
commit 2ef9435a77
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ GetWorker (
break;
case PCD_TYPE_STRING:
StringTableIdx = (UINT16) *((UINT8 *) PcdDb + Offset);
StringTableIdx = *(UINT16*)((UINT8 *) PcdDb + Offset);
RetPtr = (VOID *) (StringTable + StringTableIdx);
break;

View File

@ -640,7 +640,7 @@ GetWorker (
return (VOID *) ((UINT8 *)PeiPcdDb + Offset);
case PCD_TYPE_STRING:
StringTableIdx = (UINT16) *((UINT8 *) PeiPcdDb + Offset);
StringTableIdx = * (UINT16*) ((UINT8 *) PeiPcdDb + Offset);
return (VOID *) (&StringTable[StringTableIdx]);
default: