[PATCH 4/5] d3dx9_36: Implement ID3DXFileEnumObjectImpl_GetChildren & ID3DXFileEnumObjectImpl_GetChild and add stubbed interface for ID3DXFileData.

Dmitry Timoshkov dmitry at baikal.ru
Mon Oct 22 21:48:17 CDT 2012

Christian Costa <titan.costa at gmail.com> wrote:

> >> +    object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, 
> >> sizeof(ID3DXFileDataImpl));
> > I'd use sizeof(*object), but that's probably only a matter of taste.
> >
> I use to do it this way but I don't have particular taste. If 
> sizeof(*object) is the Wine preferred way I can change it.

If type of the 'object' will change in future that won't require any
changes and there will be no possible problems if the expression in
sizeof() doesn't change. So that's not 'a Wine preferred way' but
something that makes life easier in general.


More information about the wine-devel mailing list