bugs in d3d8.dll and msvcrt.dll