From 216b82b32a93abcdff5d8942c4a59548c6da293b Mon Sep 17 00:00:00 2001 From: ErLullo Date: Wed, 18 Feb 2026 09:27:31 +0100 Subject: [PATCH] Change uiSize type to lzo_uint in Decompress method --- src/DumpProto/lzo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DumpProto/lzo.cpp b/src/DumpProto/lzo.cpp index 8fd3b52..335a7d1 100644 --- a/src/DumpProto/lzo.cpp +++ b/src/DumpProto/lzo.cpp @@ -125,7 +125,7 @@ bool CLZObject::BeginDecompress(const void * pvIn) bool CLZObject::Decompress(DWORD * pdwKey) { - UINT uiSize; + lzo_uint uiSize; int r; if (m_pHeader->dwEncryptSize) @@ -138,7 +138,7 @@ bool CLZObject::Decompress(DWORD * pdwKey) return false; } - if (LZO_E_OK != (r = lzo1x_decompress(pbDecryptedBuffer + sizeof(DWORD), m_pHeader->dwCompressedSize, m_pbBuffer, (lzo_uint*)&uiSize, NULL))) + if (LZO_E_OK != (r = lzo1x_decompress(pbDecryptedBuffer + sizeof(DWORD), m_pHeader->dwCompressedSize, m_pbBuffer, &uiSize, NULL))) { fprintf(stderr, "LZObject: Decompress failed(decrypt) ret %d\n", r); return false; @@ -150,7 +150,7 @@ bool CLZObject::Decompress(DWORD * pdwKey) { uiSize = m_pHeader->dwRealSize; - if (LZO_E_OK != (r = lzo1x_decompress_safe(m_pbIn, m_pHeader->dwCompressedSize, m_pbBuffer, (lzo_uint*)&uiSize, NULL))) + if (LZO_E_OK != (r = lzo1x_decompress_safe(m_pbIn, m_pHeader->dwCompressedSize, m_pbBuffer, &uiSize, NULL))) { fprintf(stderr, "LZObject: Decompress failed : ret %d, CompressedSize %d\n", r, m_pHeader->dwCompressedSize); return false;