diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c b/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c index 9c1b9b8506..0ba2a25618 100644 --- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c +++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c @@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. STATIC EFI_DEVICE_PATH_PROTOCOL * UnpackDevicePath ( - IN EFI_DEVICE_PATH_PROTOCOL *DevPath + IN CONST EFI_DEVICE_PATH_PROTOCOL *DevPath ) /*++ @@ -34,7 +34,7 @@ UnpackDevicePath ( --*/ { - EFI_DEVICE_PATH_PROTOCOL *Src; + CONST EFI_DEVICE_PATH_PROTOCOL *Src; EFI_DEVICE_PATH_PROTOCOL *Dest; EFI_DEVICE_PATH_PROTOCOL *NewPath; UINTN Size;