VirtualBox

Changeset 98056 in vbox


Ignore:
Timestamp:
Jan 11, 2023 12:36:11 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155170
Message:

WDDM: corrected assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/Svga.cpp

    r98043 r98056  
    755755
    756756    /* The surface must not be redirected yet. */
    757     AssertReturn(SVGAHOSTOBJECTID(&pSO->ho) == pSO->u32SharedSid, STATUS_INVALID_PARAMETER);
     757    AssertReturnStmt(SVGAHOSTOBJECTID(&pSO->ho) == pSO->u32SharedSid, SvgaSurfaceObjectRelease(pSO), STATUS_INVALID_PARAMETER);
    758758
    759759    /* The surface object to be mapped to. Query it to reference it.
     
    780780
    781781    /* The surface must be redirected. */
    782     AssertReturn(SVGAHOSTOBJECTID(&pSO->ho) != pSO->u32SharedSid, STATUS_INVALID_PARAMETER);
     782    AssertReturnStmt(SVGAHOSTOBJECTID(&pSO->ho) != pSO->u32SharedSid, SvgaSurfaceObjectRelease(pSO), STATUS_INVALID_PARAMETER);
    783783
    784784    /* The shared surface object, which the u32Sid was mapped to.
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