wined3d: Only restore the style and exStyle when it is untouched.