Henri Verbeet : wined3d: Properly check if a surface has a DIB section in gdi_surface_map().

Alexandre Julliard julliard at winehq.org
Thu Dec 8 13:43:38 CST 2011


Module: wine
Branch: master
Commit: 2d1a941b7dc76d754b15c3f6807fb5e371e367a5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2d1a941b7dc76d754b15c3f6807fb5e371e367a5

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Dec  7 22:08:56 2011 +0100

wined3d: Properly check if a surface has a DIB section in gdi_surface_map().

---

 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. */




More information about the wine-cvs mailing list