[PATCH 1/1] d2d1: Improve resource properties check when creating a bitmap.