wined3d: Store the private data in IWineD3DResource::SetPrivateData.

This commit is contained in:
Stefan Dösinger 2006-04-12 00:09:13 +02:00 committed by Alexandre Julliard
parent 4e796854af
commit edfe5d68ee
1 changed files with 2 additions and 0 deletions

View File

@ -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;