Skip to content

Commit

Permalink
wasapi: Fixed some compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 22, 2018
1 parent 9338a61 commit 4888240
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/audio/wasapi/SDL_wasapi_win32.c
Expand Up @@ -188,7 +188,6 @@ SDLMMNotificationClient_OnDeviceRemoved(IMMNotificationClient *ithis, LPCWSTR pw
static HRESULT STDMETHODCALLTYPE
SDLMMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId, DWORD dwNewState)
{
SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis;
IMMDevice *device = NULL;

if (SUCCEEDED(IMMDeviceEnumerator_GetDevice(enumerator, pwstrDeviceId, &device))) {
Expand Down Expand Up @@ -232,7 +231,7 @@ static const IMMNotificationClientVtbl notification_client_vtbl = {
SDLMMNotificationClient_OnPropertyValueChanged
};

static SDLMMNotificationClient notification_client = { &notification_client_vtbl, 1 };
static SDLMMNotificationClient notification_client = { &notification_client_vtbl, { 1 } };


int
Expand Down

0 comments on commit 4888240

Please sign in to comment.