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;
```suggestion:-2+0 if (!(obj = calloc(1, sizeof(*obj)))) return E_OUTOFMEMORY; ```
Moving toward consistent style is IMO better.