[Bug 36658] New: valgrind shows an invalid read in ddraw/tests/d3d.c