VirtualBox

Ignore:
Timestamp:
Oct 29, 2009 3:46:38 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54104
Message:

2d accel: proper handle the 2d command when framebuffer in null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r23185 r24165  
    23402340        IFramebuffer *pFramebuffer = maFramebuffers[id].pFramebuffer;
    23412341
    2342         // if there is no framebuffer, this call is not interesting
    23432342        if (pFramebuffer == NULL)
    2344             return;
    2345 
    2346         pFramebuffer->Lock();
    2347 
    2348         HRESULT hr = pFramebuffer->ProcessVHWACommand((BYTE*)pCommand);
    2349         if(FAILED(hr))
    2350         {
    2351             rc = (hr == E_NOTIMPL) ? VERR_NOT_IMPLEMENTED : VERR_GENERAL_FAILURE;
    2352         }
    2353 
    2354         pFramebuffer->Unlock();
    2355 
     2343        {
     2344            pFramebuffer->Lock();
     2345
     2346            HRESULT hr = pFramebuffer->ProcessVHWACommand((BYTE*)pCommand);
     2347            if(FAILED(hr))
     2348            {
     2349                rc = (hr == E_NOTIMPL) ? VERR_NOT_IMPLEMENTED : VERR_GENERAL_FAILURE;
     2350            }
     2351
     2352            pFramebuffer->Unlock();
     2353        }
     2354        else
     2355        {
     2356            rc = VERR_NOT_IMPLEMENTED;
     2357        }
    23562358    }
    23572359    else
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