diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c index 78537e866e9..be4304629aa 100644 --- a/dlls/wined3d/resource.c +++ b/dlls/wined3d/resource.c @@ -126,6 +126,8 @@ HRESULT WINAPI IWineD3DResourceImpl_SetPrivateData(IWineD3DResource *iface, REFG HeapFree(GetProcessHeap(), 0, *data); return E_OUTOFMEMORY; } + (*data)->size = SizeOfData; + memcpy((*data)->ptr.data, pData, SizeOfData); } /* link it in */ (*data)->next = This->resource.privateData;