> Here:
> /home/marcus/projects/wine/dlls/d3d9/device.c: In
> Funktion »reset_enum_callback«: 
Does the attached patch fix the issue?
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 9d02539..578d783 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -424,7 +424,8 @@ static BOOL     WINAPI  IDirect3DDevice9Impl_ShowCursor(LPDIRECT3DDEVICE9EX ifac
 
 static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data) {
     BOOL *resources_ok = data;
-    WINED3DRESOURCETYPE type;
+    WINED3DRESOURCETYPE wined3dtype;
+    D3DRESOURCETYPE type;
     HRESULT ret = S_OK;
     WINED3DSURFACE_DESC surface_desc;
     WINED3DVOLUME_DESC volume_desc;
@@ -441,7 +442,7 @@ static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data
     switch(type) {
         case D3DRTYPE_SURFACE:
             surface_desc.Format = &dummy_format;
-            surface_desc.Type = &type;
+            surface_desc.Type = &wined3dtype;
             surface_desc.Usage = &dummy_dword;
             surface_desc.Pool = &pool;
             surface_desc.Size = &dummy_dword;


Reply via email to