reverted failed attempt, fixed callback release

This commit is contained in:
Hane 2023-08-12 17:29:01 +02:00
commit a565190e6f
7 changed files with 51 additions and 30 deletions

View file

@ -42,7 +42,7 @@ HRESULT EndpointCallback::OnNotify(PAUDIO_VOLUME_NOTIFICATION_DATA pNotify) {
AUDIO_VOLUME_NOTIFICATION_DATA eventData = *pNotify;
NGuid* guid = osh->getGuid();
if (memcmp(guid, &eventData, sizeof(guid)) == 0) {
if (memcmp(guid, &eventData, sizeof(*guid)) == 0) {
log_debugcpp("perlitas");
} else {
log_debugcpp("Onnanokotify says Stored: " << guid->data1);