On 16 May 2014 14:22, Stefan Dösinger stefandoesinger@gmail.com wrote:
- client = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectPlay8LobbyClientImpl));
- if (!client) {
*obj = NULL;
return E_OUTOFMEMORY;
- }
} placement.
While we're handing out style hints, I think "sizeof(*client)" is generally nicer for this kind of thing.