The StringIndex should be casted to UINT16* but not UINT8*.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8466 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-06-04 14:56:45 +00:00
parent 287f4f47b4
commit 7076244ef4
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ SetWorker (
case PCD_TYPE_STRING:
if (SetPtrTypeSize (TmpTokenNumber, Size)) {
CopyMem (StringTable + *((UINT8 *)InternalData), Data, *Size);
CopyMem (StringTable + *((UINT16 *)InternalData), Data, *Size);
Status = EFI_SUCCESS;
} else {
Status = EFI_INVALID_PARAMETER;