ao_wasapi_changenotify: fix IsEqualPropertyKey for C

This commit is contained in:
Kacper Michajłow 2024-05-01 23:24:57 +02:00
parent 5cf0da2a6a
commit 529cc38c67
1 changed files with 5 additions and 0 deletions

View File

@ -155,6 +155,11 @@ static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnDefaultDeviceChanged(
return S_OK; return S_OK;
} }
// IsEqualIID in Windows SDK passes GUID as REFGUID (reference) in C++, but in
// C is has to get pointers...
#undef IsEqualPropertyKey
#define IsEqualPropertyKey(a, b) (((a).pid == (b).pid) && IsEqualIID(&(a).fmtid, &(b).fmtid))
static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnPropertyValueChanged( static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnPropertyValueChanged(
IMMNotificationClient *This, IMMNotificationClient *This,
LPCWSTR pwstrDeviceId, LPCWSTR pwstrDeviceId,