mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcCompressionLib: Fix LZVN prototype
This commit is contained in:
parent
d735de611d
commit
c921ef567f
@ -69,10 +69,10 @@ DecompressLZSS (
|
||||
**/
|
||||
UINTN
|
||||
DecompressLZVN (
|
||||
OUT VOID *Dst,
|
||||
IN UINTN DstLen,
|
||||
IN CONST VOID *Src,
|
||||
IN UINTN SrcLen
|
||||
OUT UINT8 *Dst,
|
||||
IN UINTN DstLen,
|
||||
IN CONST UINT8 *Src,
|
||||
IN UINTN SrcLen
|
||||
);
|
||||
|
||||
#endif // OC_COMPRESSION_LIB_H
|
||||
|
||||
@ -806,8 +806,8 @@ invalid_match_distance:
|
||||
#endif
|
||||
}
|
||||
|
||||
size_t lzvn_decode_buffer(void *dst, size_t dst_size,
|
||||
const void *src, size_t src_size) {
|
||||
size_t lzvn_decode_buffer(unsigned char *dst, size_t dst_size,
|
||||
const unsigned char *src, size_t src_size) {
|
||||
// Init LZVN decoder state
|
||||
lzvn_decoder_state dstate;
|
||||
|
||||
@ -830,5 +830,5 @@ size_t lzvn_decode_buffer(void *dst, size_t dst_size,
|
||||
lzvn_decode(&dstate);
|
||||
|
||||
// This is how much we decompressed
|
||||
return dstate.dst - (unsigned char*) dst;
|
||||
return dstate.dst - dst;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user