Changeset 49231 in vbox for trunk/src/VBox
- Timestamp:
- Oct 22, 2013 2:38:45 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 90133
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VMDK.cpp
r49039 r49231 639 639 } 640 640 641 /*#define VMDK_USE_BLOCK_DECOMP_API - test and enable */ 642 #ifndef VMDK_USE_BLOCK_DECOMP_API 641 643 static DECLCALLBACK(int) vmdkFileInflateHelper(void *pvUser, void *pvBuf, size_t cbBuf, size_t *pcbBuf) 642 644 { … … 668 670 return VINF_SUCCESS; 669 671 } 672 #endif 670 673 671 674 /** … … 679 682 { 680 683 int rc; 684 #ifndef VMDK_USE_BLOCK_DECOMP_API 681 685 PRTZIPDECOMP pZip = NULL; 686 #endif 682 687 VMDKMARKER *pMarker = (VMDKMARKER *)pExtent->pvCompGrain; 683 688 size_t cbCompSize, cbActuallyRead; … … 727 732 512); 728 733 734 #ifdef VMDK_USE_BLOCK_DECOMP_API 735 rc = RTZipBlockDecompress(RTZIPTYPE_ZLIB, 0 /*fFlags*/, 736 pExtent->pvCompGrain, cbCompSize + RT_OFFSETOF(VMDKMARKER, uType), NULL, 737 pvBuf, cbToRead, &cbActuallyRead); 738 #else 729 739 VMDKCOMPRESSIO InflateState; 730 740 InflateState.pImage = pImage; … … 738 748 rc = RTZipDecompress(pZip, pvBuf, cbToRead, &cbActuallyRead); 739 749 RTZipDecompDestroy(pZip); 750 #endif /* !VMDK_USE_BLOCK_DECOMP_API */ 740 751 if (RT_FAILURE(rc)) 741 752 {
Note:
See TracChangeset
for help on using the changeset viewer.