From c921ef567fa3ba6f8526e37fbb4a99f2ece43aa5 Mon Sep 17 00:00:00 2001 From: Download-Fritz Date: Mon, 18 Mar 2019 19:54:00 +0100 Subject: [PATCH] OcCompressionLib: Fix LZVN prototype --- Include/Library/OcCompressionLib.h | 8 ++++---- Library/OcCompressionLib/lzvn/lzvn.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Include/Library/OcCompressionLib.h b/Include/Library/OcCompressionLib.h index f11aef11..4d44a056 100644 --- a/Include/Library/OcCompressionLib.h +++ b/Include/Library/OcCompressionLib.h @@ -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 diff --git a/Library/OcCompressionLib/lzvn/lzvn.c b/Library/OcCompressionLib/lzvn/lzvn.c index 56d288ce..e2d38381 100644 --- a/Library/OcCompressionLib/lzvn/lzvn.c +++ b/Library/OcCompressionLib/lzvn/lzvn.c @@ -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; }