]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c
NetworkPkg/Mtftp6Dxe: Correct the total received and saved block number.
[mirror_edk2.git] / NetworkPkg / Mtftp6Dxe / Mtftp6Wrq.c
index 055fbe6d1b821fced0fc5bc36f94b4128431bbe7..604b1f970f7c6dd63430fa828759ee7c4a228a93 100644 (file)
@@ -153,7 +153,7 @@ Mtftp6WrqHandleAck (
 {\r
   UINT16                    AckNum;\r
   INTN                      Expected;\r
-  UINT64                    TotalBlock;\r
+  UINT64                    BlockCounter;\r
 \r
   *IsCompleted = FALSE;\r
   AckNum       = NTOHS (Packet->Ack.Block[0]);\r
@@ -172,9 +172,9 @@ Mtftp6WrqHandleAck (
   //\r
   // Remove the acked block number, if this is the last block number,\r
   // tell the Mtftp6WrqInput to finish the transfer. This is the last\r
-  // block number if the block range are empty..\r
+  // block number if the block range are empty.\r
   //\r
-  Mtftp6RemoveBlockNum (&Instance->BlkList, AckNum, *IsCompleted, &TotalBlock);\r
+  Mtftp6RemoveBlockNum (&Instance->BlkList, AckNum, *IsCompleted, &BlockCounter);\r
 \r
   Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);\r
 \r