wined3d: Fix crash in wined3d_device_reset with gdi backend for directdraw.