From 7076244ef4005642712f32591abbd8188d6b6f40 Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 4 Jun 2009 14:56:45 +0000 Subject: 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 --- MdeModulePkg/Universal/PCD/Dxe/Service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index dd0ff7e..8ec3452 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -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; -- cgit v1.1