diff options
Diffstat (limited to 'EdkNt32Pkg/RuntimeDxe/FvbServices/FWBlockService.c')
-rw-r--r-- | EdkNt32Pkg/RuntimeDxe/FvbServices/FWBlockService.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EdkNt32Pkg/RuntimeDxe/FvbServices/FWBlockService.c b/EdkNt32Pkg/RuntimeDxe/FvbServices/FWBlockService.c index 1f2f8fd..8824dc4 100644 --- a/EdkNt32Pkg/RuntimeDxe/FvbServices/FWBlockService.c +++ b/EdkNt32Pkg/RuntimeDxe/FvbServices/FWBlockService.c @@ -1196,8 +1196,9 @@ Returns: Ptr = (UINT16 *) FwVolHeader;
Checksum = 0;
while (HeaderLength > 0) {
- Checksum = *Ptr++;
+ Checksum = Checksum + (*Ptr);
HeaderLength--;
+ Ptr++;
}
if (Checksum != 0) {
|