Fixed warning in d2d.api.inc