VirtualBox

Ignore:
Timestamp:
Sep 23, 2011 11:34:44 AM (13 years ago)
Author:
vboxsync
Message:

VBoxVideo: fix guest video driver hang when switching back from fullscreen text apps (public #9636)

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDriver.cpp

    r37384 r38840  
    789789{
    790790    PVBOXDISPDEV pDev = (PVBOXDISPDEV) dhpdev;
    791     DWORD dwrc;
    792791    int rc;
    793792    LOGF_ENTER();
     
    846845
    847846        /* Associate back GDI bitmap residing in our framebuffer memory with GDI's handle to our device */
    848         dwrc = EngAssociateSurface((HSURF)pDev->surface.hBitmap, pDev->hDevGDI, 0);
    849         if (dwrc != NO_ERROR)
    850         {
    851             WARN(("EngAssociateSurface on bitmap failed with %#x", dwrc));
     847        if (!EngAssociateSurface((HSURF)pDev->surface.hBitmap, pDev->hDevGDI, 0))
     848        {
     849            WARN(("EngAssociateSurface on bitmap failed"));
    852850            return FALSE;
    853851        }
    854852
    855853        /* Associate device managed surface with GDI's handle to our device */
    856         dwrc = EngAssociateSurface(pDev->surface.hSurface, pDev->hDevGDI, pDev->flDrawingHooks);
    857         if (dwrc != NO_ERROR)
    858         {
    859             WARN(("EngAssociateSurface on surface failed with %#x", dwrc));
     854        if (!EngAssociateSurface(pDev->surface.hSurface, pDev->hDevGDI, pDev->flDrawingHooks))
     855        {
     856            WARN(("EngAssociateSurface on surface failed"));
    860857            return FALSE;
    861858        }
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDriverDDraw.cpp

    r37423 r38840  
    243243         * (required for VBVA and VRDP).
    244244         */
    245         DWORD dwrc;
    246245        SURFOBJ *pso;
    247246
    248         dwrc = EngAssociateSurface((HSURF)hBitmap, pDev->hDevGDI, pDev->flDrawingHooks);
    249         if (dwrc!=NO_ERROR)
    250         {
    251             VBOX_WARN_WINERR(dwrc);
     247        if (!EngAssociateSurface((HSURF)hBitmap, pDev->hDevGDI, pDev->flDrawingHooks))
     248        {
     249            WARN(("EngAssociateSurface failed"));
    252250            EngDeleteSurface((HSURF)hBitmap);
    253251            return NULL;
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