mmdevapi: Constify IMMDeviceEnumeratorVtbl.

This commit is contained in:
Maarten Lankhorst 2010-01-04 22:38:04 +01:00 committed by Alexandre Julliard
parent c274d6f06e
commit 056588abbc

View File

@ -35,12 +35,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(mmdevapi);
typedef struct MMDevEnumImpl typedef struct MMDevEnumImpl
{ {
IMMDeviceEnumeratorVtbl *lpVtbl; const IMMDeviceEnumeratorVtbl *lpVtbl;
LONG ref; LONG ref;
} MMDevEnumImpl; } MMDevEnumImpl;
static MMDevEnumImpl *MMDevEnumerator; static MMDevEnumImpl *MMDevEnumerator;
static IMMDeviceEnumeratorVtbl MMDevEnumVtbl; static const IMMDeviceEnumeratorVtbl MMDevEnumVtbl;
HRESULT MMDevEnum_Create(REFIID riid, void **ppv) HRESULT MMDevEnum_Create(REFIID riid, void **ppv)
{ {
@ -147,7 +147,7 @@ static HRESULT WINAPI MMDevEnum_UnregisterEndpointNotificationCallback(IMMDevice
return E_NOTIMPL; return E_NOTIMPL;
} }
static IMMDeviceEnumeratorVtbl MMDevEnumVtbl = static const IMMDeviceEnumeratorVtbl MMDevEnumVtbl =
{ {
MMDevEnum_QueryInterface, MMDevEnum_QueryInterface,
MMDevEnum_AddRef, MMDevEnum_AddRef,