VirtualBox

Changeset 103415 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Feb 19, 2024 7:52:27 AM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161736
Message:

Additions,Main,VMM,Runtime: Fix some unused expression warnings, bugref:3409

Location:
trunk/src/VBox/Additions/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp

    r103165 r103415  
    17741774        pStartupInfo->psz##a_Str = (char *)RTMemRealloc(pStartupInfo->psz##a_Str, \
    17751775           RT_MIN(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax)); \
    1776         AssertPtrBreakStmt(pStartupInfo->psz##a_Str, VERR_NO_MEMORY); \
     1776        AssertPtrBreakStmt(pStartupInfo->psz##a_Str, rc = VERR_NO_MEMORY); \
    17771777        pStartupInfo->cb##a_Str  = RT_MIN(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax);
    17781778
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r103413 r103415  
    14401440                        if (cbBufSize - cbBufUsed < cbTotal) /* Grow buffer, if needed. */
    14411441                        {
    1442                             AssertBreakStmt(cbTotal <= cbGrowSize, VERR_BUFFER_OVERFLOW);
     1442                            AssertBreakStmt(cbTotal <= cbGrowSize, rc = VERR_BUFFER_OVERFLOW);
    14431443                            pvBuf      = RTMemRealloc(pvBuf, cbBufSize + cbGrowSize);
    1444                             AssertPtrBreakStmt(pvBuf, VERR_NO_MEMORY);
     1444                            AssertPtrBreakStmt(pvBuf, rc = VERR_NO_MEMORY);
    14451445                            cbBufSize += cbGrowSize;
    14461446                        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette