mirror of https://github.com/acidanthera/audk.git
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:
parent
1f53f7bb99
commit
2ef9435a77
|
@ -161,7 +161,7 @@ GetWorker (
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PCD_TYPE_STRING:
|
case PCD_TYPE_STRING:
|
||||||
StringTableIdx = (UINT16) *((UINT8 *) PcdDb + Offset);
|
StringTableIdx = *(UINT16*)((UINT8 *) PcdDb + Offset);
|
||||||
RetPtr = (VOID *) (StringTable + StringTableIdx);
|
RetPtr = (VOID *) (StringTable + StringTableIdx);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -640,7 +640,7 @@ GetWorker (
|
||||||
return (VOID *) ((UINT8 *)PeiPcdDb + Offset);
|
return (VOID *) ((UINT8 *)PeiPcdDb + Offset);
|
||||||
|
|
||||||
case PCD_TYPE_STRING:
|
case PCD_TYPE_STRING:
|
||||||
StringTableIdx = (UINT16) *((UINT8 *) PeiPcdDb + Offset);
|
StringTableIdx = * (UINT16*) ((UINT8 *) PeiPcdDb + Offset);
|
||||||
return (VOID *) (&StringTable[StringTableIdx]);
|
return (VOID *) (&StringTable[StringTableIdx]);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue