X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FPcdLib.h;h=038443b993c9dcbe0a30a92449fc2c80edc2c1ef;hp=a0201049a5b9f932dd006367886f2d955c2bda02;hb=7085597507e62932b823a97a590dd05f2716f82e;hpb=82810f3b0f9ba49ed2d9f96c5b53e90dd7e66d88 diff --git a/MdePkg/Include/Library/PcdLib.h b/MdePkg/Include/Library/PcdLib.h index a0201049a5..038443b993 100644 --- a/MdePkg/Include/Library/PcdLib.h +++ b/MdePkg/Include/Library/PcdLib.h @@ -58,7 +58,12 @@ Module Name: PcdLib.h #define PatchPcdSet64(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value)) #define PatchPcdSetBool(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value)) #define PatchPcdSetPtr(TokenName, Size, Buffer) \ - CopyMem (_gPcd_BinaryPatch_##TokenName, (Buffer), (Size)) + LibPatchPcdSetPtr ( \ + _gPcd_BinaryPatch_##TokenName, \ + (UINTN)_PCD_PATCHABLE_##TokenName##_SIZE, \ + (Size), \ + (Buffer) \ + ) // // Dynamic is via the protocol with only the TokenNumber as argument