VirtualBox

Changeset 56264 in vbox


Ignore:
Timestamp:
Jun 5, 2015 4:08:22 PM (9 years ago)
Author:
vboxsync
Message:

Additions/WDDM: prevent system D3D DLL from unloading until guest App process is terminated (fixed some crashes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp

    r56204 r56264  
    62566256    if (SUCCEEDED(hr))
    62576257    {
    6258         if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,
     6258        /* Get system D3D DLL handle and prevent its unloading until entire process termination (GET_MODULE_HANDLE_EX_FLAG_PIN).
     6259         * This is important because even after guest App issued CloseAdatper() call, we still use pointers provided by DLL. */
     6260        if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_PIN,
    62596261                                (LPCWSTR)pDevice->RtCallbacks.pfnAllocateCb,
    62606262                                &pDevice->hHgsmiTransportModule))
    62616263        {
    62626264            Assert(pDevice->hHgsmiTransportModule);
     6265            vboxVDbgPrintR((__FUNCTION__": system D3D DLL referenced with GET_MODULE_HANDLE_EX_FLAG_PIN flag\n"));
    62636266        }
    62646267        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