mirror of https://github.com/encounter/SDL.git
wasapi: Fixed some compiler warnings.
This commit is contained in:
parent
9338a619f8
commit
488824017a
|
@ -188,7 +188,6 @@ SDLMMNotificationClient_OnDeviceRemoved(IMMNotificationClient *ithis, LPCWSTR pw
|
||||||
static HRESULT STDMETHODCALLTYPE
|
static HRESULT STDMETHODCALLTYPE
|
||||||
SDLMMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId, DWORD dwNewState)
|
SDLMMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId, DWORD dwNewState)
|
||||||
{
|
{
|
||||||
SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis;
|
|
||||||
IMMDevice *device = NULL;
|
IMMDevice *device = NULL;
|
||||||
|
|
||||||
if (SUCCEEDED(IMMDeviceEnumerator_GetDevice(enumerator, pwstrDeviceId, &device))) {
|
if (SUCCEEDED(IMMDeviceEnumerator_GetDevice(enumerator, pwstrDeviceId, &device))) {
|
||||||
|
@ -232,7 +231,7 @@ static const IMMNotificationClientVtbl notification_client_vtbl = {
|
||||||
SDLMMNotificationClient_OnPropertyValueChanged
|
SDLMMNotificationClient_OnPropertyValueChanged
|
||||||
};
|
};
|
||||||
|
|
||||||
static SDLMMNotificationClient notification_client = { ¬ification_client_vtbl, 1 };
|
static SDLMMNotificationClient notification_client = { ¬ification_client_vtbl, { 1 } };
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue