]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/CCode/Source/CompressDll/CompressDll.c
(1) Using EfiCompress in place of TianoCompress as EFI_STANDARD_COMPRESSION type...
[mirror_edk2.git] / Tools / CCode / Source / CompressDll / CompressDll.c
index cc06f26c0563e4ed1a005cab3dccbaf5fd16aff5..00cff5649fc58efd588c25613d1d49af7e21b22e 100644 (file)
 typedef long long __int64;/*For cygwin build*/\r
 #endif\r
 #include "CompressDll.h"\r
-#include "EfiCompress.h"\r
+#include "Compress.h"\r
 \r
 extern\r
 EFI_STATUS\r
-Compress (\r
+EfiCompress (\r
   IN      UINT8   *SrcBuffer,\r
   IN      UINT32  SrcSize,\r
   IN      UINT8   *DstBuffer,\r
@@ -47,7 +47,7 @@ JNIEXPORT jbyteArray JNICALL  Java_org_tianocore_framework_tasks_Compress_CallCo
    //  First call compress function and get need buffer size\r
    //\r
 \r
-   Result = Compress (\r
+   Result = EfiCompress (\r
         (char*) InputBuffer, \r
         SourceSize,  \r
         DestBuffer,\r
@@ -61,12 +61,12 @@ JNIEXPORT jbyteArray JNICALL  Java_org_tianocore_framework_tasks_Compress_CallCo
    //\r
    //  Second call compress and get the DestBuffer value\r
    //\r
-   Result = Compress(\r
-              (char*) InputBuffer, \r
+   Result = EfiCompress(\r
+        (char*) InputBuffer, \r
         SourceSize,  \r
         DestBuffer,\r
         &DestSize  \r
-     );\r
+        );\r
 \r
    //\r
    // new a MV array to store the return compressed buffer\r