[PATCH] wined3d: Validate window before setting fullscreen mode