Maarten Lankhorst : mmdevapi: Constify IMMDeviceEnumeratorVtbl.
Module: wine Branch: master Commit: 056588abbc3e73d7d46be64bf0749f2ba07bcdd3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=056588abbc3e73d7d46be64bf0... Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Mon Jan 4 22:38:04 2010 +0100 mmdevapi: Constify IMMDeviceEnumeratorVtbl. --- dlls/mmdevapi/devenum.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/mmdevapi/devenum.c b/dlls/mmdevapi/devenum.c index 90347b1..f6992df 100644 --- a/dlls/mmdevapi/devenum.c +++ b/dlls/mmdevapi/devenum.c @@ -35,12 +35,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(mmdevapi); typedef struct MMDevEnumImpl { - IMMDeviceEnumeratorVtbl *lpVtbl; + const IMMDeviceEnumeratorVtbl *lpVtbl; LONG ref; } MMDevEnumImpl; static MMDevEnumImpl *MMDevEnumerator; -static IMMDeviceEnumeratorVtbl MMDevEnumVtbl; +static const IMMDeviceEnumeratorVtbl MMDevEnumVtbl; HRESULT MMDevEnum_Create(REFIID riid, void **ppv) { @@ -147,7 +147,7 @@ static HRESULT WINAPI MMDevEnum_UnregisterEndpointNotificationCallback(IMMDevice return E_NOTIMPL; } -static IMMDeviceEnumeratorVtbl MMDevEnumVtbl = +static const IMMDeviceEnumeratorVtbl MMDevEnumVtbl = { MMDevEnum_QueryInterface, MMDevEnum_AddRef,
participants (1)
-
Alexandre Julliard