17 Jan
2024
17 Jan
'24
8:16 a.m.
Rémi Bernon (@rbernon) commented about dlls/dmime/audiopath.c:
- obj->dmobj.IPersistStream_iface.lpVtbl = &persiststream_vtbl;
hr = IDirectMusicAudioPath_QueryInterface(&obj->IDirectMusicAudioPath_iface, riid, ppobj); IDirectMusicAudioPath_Release(&obj->IDirectMusicAudioPath_iface); return hr; } + +HRESULT create_dmaudiopath_config(REFIID riid, void **ppobj) +{ + struct audio_path_config *obj; + HRESULT hr; + + *ppobj = NULL; + obj = calloc(1, sizeof(*obj)); + if (!obj) + return E_OUTOFMEMORY;
if (!(obj = calloc(1, sizeof(*obj)))) return E_OUTOFMEMORY;
Moving toward consistent style is IMO better. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4852#note_57663