fixed a logging bug with d3d9 capture