include: Fix D3DXF_FILELOADMEMORY definition.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2019-03-26 22:26:48 +01:00 committed by Alexandre Julliard
parent 0dbca5803b
commit c9c74b8b10
2 changed files with 2 additions and 2 deletions

View File

@ -588,7 +588,7 @@ static HRESULT WINAPI d3dx9_file_CreateEnumObject(ID3DXFile *iface, const void *
{ {
D3DXF_FILELOADMEMORY *memory = (D3DXF_FILELOADMEMORY*)source; D3DXF_FILELOADMEMORY *memory = (D3DXF_FILELOADMEMORY*)source;
dxfile_memory.lpMemory = memory->lpMemory; dxfile_memory.lpMemory = (void *)memory->lpMemory;
dxfile_memory.dSize = memory->dSize; dxfile_memory.dSize = memory->dSize;
dxfile_source = &dxfile_memory; dxfile_source = &dxfile_memory;
dxfile_options = DXFILELOAD_FROMMEMORY; dxfile_options = DXFILELOAD_FROMMEMORY;

View File

@ -49,7 +49,7 @@ typedef struct _D3DXF_FILELOADRESOURCE
typedef struct _D3DXF_FILELOADMEMORY typedef struct _D3DXF_FILELOADMEMORY
{ {
void *lpMemory; const void *lpMemory;
SIZE_T dSize; SIZE_T dSize;
} D3DXF_FILELOADMEMORY; } D3DXF_FILELOADMEMORY;