[Bug 40795] Any Direct3D10 application crashes when using native d3d10.dll after commit fcc8553d8b8075542cd3edf26276c1915d29b0da