Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 312d982

Browse files
Devices/Graphics/DevVGA-SVGA3d-dx.cp: Avoid harmless parfait warning about calling function in repeated macro expansion, bugref:3409
svn:sync-xref-src-repo-rev: r171317
1 parent b24aadd commit 312d982

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx.cpp‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: DevVGA-SVGA3d-dx.cpp 111474 2025-10-21 14:56:59Z vitali.pelenjow@oracle.com $ */
1+
/* $Id: DevVGA-SVGA3d-dx.cpp 111724 2025-11-14 09:27:54Z alexander.eichner@oracle.com $ */
22
/** @file
33
* DevSVGA3d - VMWare SVGA device, 3D parts - Common code for DX backend interface.
44
*/
@@ -2246,7 +2246,10 @@ static int dxSetOrGrowCOTable(PVGASTATECC pThisCC, PVMSVGA3DDXCONTEXT pDXContext
22462246

22472247
/* When growing a COTable, the valid size can't be greater than the old COTable size. */
22482248
if (fGrow)
2249-
validSizeInBytes = RT_MIN(validSizeInBytes, vmsvgaR3MobSize(pDXContext->aCOTMobs[idxCOTable]));
2249+
{
2250+
uint32_t const cbCOTable = vmsvgaR3MobSize(pDXContext->aCOTMobs[idxCOTable]);
2251+
validSizeInBytes = RT_MIN(validSizeInBytes, cbCOTable);
2252+
}
22502253

22512254
/* Create a memory pointer, which is accessible by host. */
22522255
rc = vmsvgaR3MobBackingStoreCreate(pSvgaR3State, pMob, fGrow ? 0 : validSizeInBytes);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /