mirror of https://github.com/acidanthera/audk.git
EmbeddedPkg/PrePiLib: Fixed incorrect type casting
A pointer on a UINTN variable was used instead of UINT32 one. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish <afish@apple.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15252 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
70f1d5e756
commit
c1cdcab952
|
@ -293,7 +293,7 @@ FfsProcessSection (
|
||||||
UINT32 SectionLength;
|
UINT32 SectionLength;
|
||||||
UINT32 ParsedLength;
|
UINT32 ParsedLength;
|
||||||
EFI_COMPRESSION_SECTION *CompressionSection;
|
EFI_COMPRESSION_SECTION *CompressionSection;
|
||||||
UINTN DstBufferSize;
|
UINT32 DstBufferSize;
|
||||||
VOID *ScratchBuffer;
|
VOID *ScratchBuffer;
|
||||||
UINT32 ScratchBufferSize;
|
UINT32 ScratchBufferSize;
|
||||||
VOID *DstBuffer;
|
VOID *DstBuffer;
|
||||||
|
@ -322,13 +322,13 @@ FfsProcessSection (
|
||||||
Status = UefiDecompressGetInfo (
|
Status = UefiDecompressGetInfo (
|
||||||
(UINT8 *) ((EFI_COMPRESSION_SECTION *) Section + 1),
|
(UINT8 *) ((EFI_COMPRESSION_SECTION *) Section + 1),
|
||||||
(UINT32) SectionLength - sizeof (EFI_COMPRESSION_SECTION),
|
(UINT32) SectionLength - sizeof (EFI_COMPRESSION_SECTION),
|
||||||
(UINT32 *) &DstBufferSize,
|
&DstBufferSize,
|
||||||
&ScratchBufferSize
|
&ScratchBufferSize
|
||||||
);
|
);
|
||||||
} else if (Section->Type == EFI_SECTION_GUID_DEFINED) {
|
} else if (Section->Type == EFI_SECTION_GUID_DEFINED) {
|
||||||
Status = ExtractGuidedSectionGetInfo (
|
Status = ExtractGuidedSectionGetInfo (
|
||||||
Section,
|
Section,
|
||||||
(UINT32 *) &DstBufferSize,
|
&DstBufferSize,
|
||||||
&ScratchBufferSize,
|
&ScratchBufferSize,
|
||||||
&SectionAttribute
|
&SectionAttribute
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue