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

This commit is contained in:
Henri Verbeet 2011-12-07 22:08:56 +01:00 committed by Alexandre Julliard
parent 56e3e05e57
commit 2d1a941b7d
1 changed files with 1 additions and 1 deletions

View File

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