VirtualBox

Ignore:
Timestamp:
Aug 18, 2010 12:10:29 PM (14 years ago)
Author:
vboxsync
Message:

wddm: multi-screen fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxScreen.cpp

    r31687 r31756  
    416416    HRESULT hr = S_FALSE;
    417417
    418     Assert(0);
    419 
    420418    if (!pMon->bInited)
    421419    {
     
    527525    {
    528526        DWORD dwErr = WaitForSingleObject(pMon->hThread, INFINITE);
    529         if (dwErr != WAIT_OBJECT_0)
     527        if (dwErr == WAIT_OBJECT_0)
     528        {
     529            CloseHandle(pMon->hThread);
     530            pMon->hThread = 0;
     531        }
     532        else
    530533        {
    531534            DWORD winErr = GetLastError();
     
    537540    {
    538541        DWORD winErr = GetLastError();
    539         hr = HRESULT_FROM_WIN32(winErr);
    540         Assert(0);
    541     }
    542 
    543     return hr;
    544 }
    545 
     542        Assert(winErr != ERROR_SUCCESS);
     543        if (winErr != ERROR_INVALID_THREAD_ID)
     544        {
     545            hr = HRESULT_FROM_WIN32(winErr);
     546            Assert(0);
     547        }
     548        /* else - treat as OK */
     549    }
     550
     551    return hr;
     552}
     553
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