4f60c65c
by Elizabeth Figura at 2025-11-20T09:16:29-06:00
d3d11: Use GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS in D3D11CoreCreateDevice().
This handle is eventually used by DXGI to call D3D11CoreRegisterLayers().
apitrace ships a d3d11.dll which has the same name, but does not export
D3D11CoreRegisterLayers(). Using GetModuleHandle("d3d11.dll") here can then lead
to a crash in dxgi if the apitrace wrapper DLL is returned.