mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
mmdevapi: Use regular list iterator.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
81538ebb6d
commit
c5b6e31438
@ -1281,7 +1281,7 @@ static HRESULT WINAPI MMDevEnum_RegisterEndpointNotificationCallback(IMMDeviceEn
|
||||
static HRESULT WINAPI MMDevEnum_UnregisterEndpointNotificationCallback(IMMDeviceEnumerator *iface, IMMNotificationClient *client)
|
||||
{
|
||||
MMDevEnumImpl *This = impl_from_IMMDeviceEnumerator(iface);
|
||||
struct NotificationClientWrapper *wrapper, *wrapper2;
|
||||
struct NotificationClientWrapper *wrapper;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, client);
|
||||
|
||||
@ -1290,8 +1290,7 @@ static HRESULT WINAPI MMDevEnum_UnregisterEndpointNotificationCallback(IMMDevice
|
||||
|
||||
EnterCriticalSection(&g_notif_lock);
|
||||
|
||||
LIST_FOR_EACH_ENTRY_SAFE(wrapper, wrapper2, &g_notif_clients,
|
||||
struct NotificationClientWrapper, entry){
|
||||
LIST_FOR_EACH_ENTRY(wrapper, &g_notif_clients, struct NotificationClientWrapper, entry){
|
||||
if(wrapper->client == client){
|
||||
list_remove(&wrapper->entry);
|
||||
HeapFree(GetProcessHeap(), 0, wrapper);
|
||||
|
Loading…
Reference in New Issue
Block a user