[PATCH 2/5] wined3d: Properly check if a surface has a DIB section in gdi_surface_map().

Henri Verbeet hverbeet at codeweavers.com
Wed Dec 7 15:08:56 CST 2011


---
 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index e7ae65b..b7a120e 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1983,7 +1983,7 @@ static void gdi_surface_map(struct wined3d_surface *surface, const RECT *rect, D
     TRACE("surface %p, rect %s, flags %#x.\n",
             surface, wine_dbgstr_rect(rect), flags);
 
-    if (!surface->resource.allocatedMemory)
+    if (!(surface->flags & SFLAG_DIBSECTION))
     {
         /* This happens on gdi surfaces if the application set a user pointer
          * and resets it. Recreate the DIB section. */
-- 
1.7.3.4




More information about the wine-patches mailing list