Christian Costa titan.costa@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.