]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/lzx.c
Support WinPE which contains pecmd.exe
[Ventoy.git] / GRUB2 / MOD_SRC / grub-2.04 / grub-core / ventoy / lzx.c
index 56dd7dd25efb2ec65ad00ac3cde1df8c239b3c5e..732a96f2a1d7e2ef41290b4eef2e7a3cf9562c74 100644 (file)
@@ -462,6 +462,8 @@ static int lzx_uncompressed ( struct lzx *lzx ) {
        if ( len % 2 )
                lzx->input.offset++;
 
+    lzx->output.offset += len;
+
        return 0;
 }
 
@@ -614,7 +616,7 @@ ssize_t lzx_decompress ( const void *data, size_t len, void *buf ) {
        /* Sanity check */
        if ( len % 2 ) {
                DBG ( "LZX cannot handle odd-length input data\n" );
-               return -1;
+               //return -1;
        }
 
        /* Initialise global state, if required */