[PATCH 4/4] d3d9: Validate adapter format in CheckDeviceFormat().