X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FDebugPortDxe%2FDebugPort.c;fp=MdeModulePkg%2FUniversal%2FDebugPortDxe%2FDebugPort.c;h=dcb623cfebc5211cc31f8062f740aecc8200d5c8;hp=298b6b2da3e7a18b15dc3a8f0f475e22770e213c;hb=809e2bbf41241f35140dd7f294ddf2489836eef9;hpb=588bb5ae52edc99aef6fcb68c31ce0882f0e5c3c diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c index 298b6b2da3..dcb623cfeb 100644 --- a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c +++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c @@ -4,7 +4,7 @@ ALL CODE IN THE SERIALIO STACK MUST BE RE-ENTRANT AND CALLABLE FROM INTERRUPT CONTEXT -Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -569,7 +569,7 @@ DebugPortRead ( LocalBufferSize = *BufferSize - (BufferPtr - (UINT8 *) Buffer); } while (LocalBufferSize != 0 && Timeout > 0); - *BufferSize = (UINTN) (BufferPtr - (UINT8 *) Buffer); + *BufferSize = (UINTN) BufferPtr - (UINTN) Buffer; return Status; }