mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-29 14:35:23 -04:00
UEFITool 0.18.5
- solved compilation problems with strict C99 mode for C files - solved a bug in insert/replace applied to raw files introduced in 0.18.0 - added "Copy All" action for messages
This commit is contained in:
parent
534f01fcd5
commit
41243f6d25
5 changed files with 39 additions and 12 deletions
|
@ -132,10 +132,11 @@ VOID* CopyMem(VOID* dst, CONST VOID* src, size_t size) {
|
|||
}
|
||||
|
||||
VOID* AllocateZeroPool(size_t size) {
|
||||
VOID* pool;
|
||||
if (!size)
|
||||
return NULL;
|
||||
|
||||
VOID* pool = malloc(size);
|
||||
pool = malloc(size);
|
||||
memset(pool, 0x00, size);
|
||||
return pool;
|
||||
}
|
||||
|
@ -1457,16 +1458,16 @@ IN OUT UINT64 *DstSize
|
|||
|
||||
UINT8 EfiCompress(CONST VOID* SrcBuffer, CONST UINT64 SrcSize, VOID* DstBuffer, UINT64* DstSize)
|
||||
{
|
||||
mPBit = 4;
|
||||
VOID* buffer = (VOID*)SrcBuffer;
|
||||
UINT64 size = SrcSize;
|
||||
mPBit = 4;
|
||||
return Compress(buffer, size, DstBuffer, DstSize);
|
||||
}
|
||||
|
||||
UINT8 TianoCompress(CONST VOID* SrcBuffer, CONST UINT64 SrcSize, VOID* DstBuffer, UINT64* DstSize)
|
||||
{
|
||||
mPBit = 5;
|
||||
VOID* buffer = (VOID*)SrcBuffer;
|
||||
UINT64 size = SrcSize;
|
||||
mPBit = 5;
|
||||
return Compress(buffer, size, DstBuffer, DstSize);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue