Skip to content

Commit 7c38be1

Browse files
committed
Storage/VMDK: Fix typo. bugref:11122
svn:sync-xref-src-repo-rev: r174524
1 parent 07cc0b3 commit 7c38be1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/VBox/Storage/VMDK.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: VMDK.cpp 114684 2026-07-14 10:08:58Z klaus.espenlaub@oracle.com $ */
1+
/* $Id: VMDK.cpp 114688 2026-07-14 10:17:48Z klaus.espenlaub@oracle.com $ */
22
/** @file
33
* VMDK disk image, core code.
44
*/
@@ -854,7 +854,7 @@ DECLINLINE(int) vmdkFileInflateSync(PVMDKIMAGE pImage, PVMDKEXTENT pExtent,
854854
/* Sanity check - the expansion ratio should be much less than 2. */
855855
Assert(cbCompSize < 2 * cbToRead);
856856
if ( cbCompSize >= 2 * cbToRead
857-
|| RT_ALIGN_Z(cbCompSize + RT_UOFFSETOF(VMDKMARKER, uType), 512) > cbCompGrain)
857+
|| RT_ALIGN_Z(cbCompSize + RT_UOFFSETOF(VMDKMARKER, uType), 512) > pExtent->cbCompGrain)
858858
return VERR_VD_VMDK_INVALID_FORMAT;
859859

860860
/* Compressed grain marker. Data follows immediately. */

0 commit comments

Comments
 (0)