From 256cd6a4cbae88a37f88543a60ce6deb4b0a674d Mon Sep 17 00:00:00 2001 From: winesync Date: Mon, 21 Sep 2020 22:50:19 +0200 Subject: [PATCH] [WINESYNC] include: Fix D3DXF_FILELOADMEMORY definition. Signed-off-by: Matteo Bruni Signed-off-by: Alexandre Julliard wine commit id c9c74b8b10116c3f0b3bd4d08724963245499a92 by Matteo Bruni --- dll/directx/wine/d3dx9_36/xfile.c | 2 +- sdk/include/dxsdk/d3dx9xof.h | 2 +- sdk/tools/winesync/d3dx9.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dll/directx/wine/d3dx9_36/xfile.c b/dll/directx/wine/d3dx9_36/xfile.c index fc44c7f391e..f75433bb4b0 100644 --- a/dll/directx/wine/d3dx9_36/xfile.c +++ b/dll/directx/wine/d3dx9_36/xfile.c @@ -592,7 +592,7 @@ static HRESULT WINAPI d3dx9_file_CreateEnumObject(ID3DXFile *iface, const void * { D3DXF_FILELOADMEMORY *memory = (D3DXF_FILELOADMEMORY*)source; - dxfile_memory.lpMemory = memory->lpMemory; + dxfile_memory.lpMemory = (void *)memory->lpMemory; dxfile_memory.dSize = memory->dSize; dxfile_source = &dxfile_memory; dxfile_options = DXFILELOAD_FROMMEMORY; diff --git a/sdk/include/dxsdk/d3dx9xof.h b/sdk/include/dxsdk/d3dx9xof.h index 35019f26d4e..227f3a57ba2 100644 --- a/sdk/include/dxsdk/d3dx9xof.h +++ b/sdk/include/dxsdk/d3dx9xof.h @@ -49,7 +49,7 @@ typedef struct _D3DXF_FILELOADRESOURCE typedef struct _D3DXF_FILELOADMEMORY { - void *lpMemory; + const void *lpMemory; SIZE_T dSize; } D3DXF_FILELOADMEMORY; diff --git a/sdk/tools/winesync/d3dx9.cfg b/sdk/tools/winesync/d3dx9.cfg index 616db55328b..f2f9fecdde7 100644 --- a/sdk/tools/winesync/d3dx9.cfg +++ b/sdk/tools/winesync/d3dx9.cfg @@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h, include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h, include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h} -tags: {wine: cd3e5020e4c87f49eb042fff9f607b6d745a5d55} +tags: {wine: c9c74b8b10116c3f0b3bd4d08724963245499a92}