Huw Davies (@huw) commented about dlls/mmdevapi/session.c:
+{
- struct audio_session *session;
- TRACE("(%s, %p, %u, %p)\n", debugstr_guid(guid), device, channels, out);
- if (!guid || IsEqualGUID(guid, &GUID_NULL)) {
if (!(*out = session_create(&GUID_NULL, device, channels)))
return E_OUTOFMEMORY;
return S_OK;
- }
- *out = NULL;
- LIST_FOR_EACH_ENTRY(session, &sessions, struct audio_session, entry) {
if (session->device == device &&
IsEqualGUID(guid, &session->guid)) {
This identation is rather awkward (and is somewhat different in most of the drivers). Could we just simply unwrap this line so it's on the same line as the start of the `if` condition.