VirtualBox

Ignore:
Timestamp:
Jul 30, 2021 10:18:24 PM (3 years ago)
Author:
vboxsync
Message:

Dev*: Check PDMDevHlpCritSectEnter return status better. bugref:6695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DevParallel.cpp

    r90332 r90445  
    304304    PPARALLELPORT   pThis   = PDMDEVINS_2_DATA(pDevIns, PPARALLELPORT);
    305305
    306     PDMDevHlpCritSectEnter(pDevIns, pDevIns->pCritSectRoR3, VINF_SUCCESS);
     306    int rc = PDMDevHlpCritSectEnter(pDevIns, pDevIns->pCritSectRoR3, VINF_SUCCESS);
     307    AssertRCReturn(rc, rc);
     308
    307309    parallelR3IrqSet(pDevIns, pThis);
     310
    308311    PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3);
    309312
Note: See TracChangeset for help on using the changeset viewer.

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