Stefan Dösinger : wined3d: Avoid a false ERR.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 28 07:15:04 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 0fbc1fc0df9ab5811c38cd9d5dbc0110dff9ea9e
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=0fbc1fc0df9ab5811c38cd9d5dbc0110dff9ea9e

Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date:   Thu Jul 27 17:24:55 2006 +0200

wined3d: Avoid a false ERR.

---

 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 00d68c2..5856404 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -102,7 +102,7 @@ ULONG WINAPI IWineD3DSurfaceImpl_Release
             This->dib.bitmap_data = NULL;
             This->resource.allocatedMemory = NULL;
         }
-        IWineD3DSurface_SetMem(iface, NULL);
+        if(This->Flags & SFLAG_USERPTR) IWineD3DSurface_SetMem(iface, NULL);
 
         IWineD3DResourceImpl_CleanUp((IWineD3DResource *)iface);
         if(iface == device->ddraw_primary)




More information about the wine-cvs mailing list