VirtualBox

Changeset 60175 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Mar 23, 2016 5:15:23 PM (9 years ago)
Author:
vboxsync
Message:

DevVGA: fixed taking screenshot when Windows guest displays BSOD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r59606 r60175  
    52315231    }
    52325232
     5233    int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);
     5234    AssertRC(rc);
     5235
     5236    /* This method only works if the VGA device is in a VBE mode. */
     5237    if ((pThis->vbe_regs[VBE_DISPI_INDEX_ENABLE] & VBE_DISPI_ENABLED) == 0)
     5238    {
     5239        PDMCritSectLeave(&pThis->CritSect);
     5240        return VERR_INVALID_STATE;
     5241    }
     5242
    52335243    /* Choose the rendering function. */
    52345244    switch (cSrcBitsPerPixel)
     
    52375247        case 0:
    52385248            /* Nothing to do, just return. */
     5249            PDMCritSectLeave(&pThis->CritSect);
    52395250            return VINF_SUCCESS;
    52405251        case 8:
     
    52535264            v = VGA_DRAW_LINE32;
    52545265            break;
    5255     }
    5256 
    5257     int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);
    5258     AssertRC(rc);
    5259 
    5260     /* This method only works if the VGA device is in a VBE mode. */
    5261     if ((pThis->vbe_regs[VBE_DISPI_INDEX_ENABLE] & VBE_DISPI_ENABLED) == 0)
    5262     {
    5263         PDMCritSectLeave(&pThis->CritSect);
    5264         return VERR_INVALID_STATE;
    52655266    }
    52665267
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