[DDraw] Fix DxDiag tests.
[reactos.git] / dll / directx / wine / ddraw / surface.c
index e188396..df8d038 100644 (file)
@@ -2346,7 +2346,9 @@ static HRESULT WINAPI ddraw_surface7_ReleaseDC(IDirectDrawSurface7 *iface, HDC h
     HRESULT hr;
 
     TRACE("iface %p, dc %p.\n", iface, hdc);
-
+#ifdef __REACTOS__
+    GdiFlush();
+#endif
     wined3d_mutex_lock();
     if (!surface->dc)
     {