From eb8be88866d858d85842882f23defd82603eadd6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 17 Feb 2012 12:31:53 -0800 Subject: [PATCH] Use the correct type to store the count from IMMDeviceCollection_GetCount --- Alc/backends/mmdevapi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 2bfd2d0b..9eb5cfc5 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -105,7 +105,7 @@ static HRESULT WaitForResponse(ThreadRequest *req) static HRESULT get_mmdevice_by_guid(IMMDeviceEnumerator *devenum, EDataFlow flowdir, const GUID *guid, IMMDevice **out) { IMMDeviceCollection *coll; - DWORD count, i; + UINT count, i; HRESULT hr; hr = IMMDeviceEnumerator_EnumAudioEndpoints(devenum, flowdir, DEVICE_STATE_ACTIVE, &coll); @@ -211,10 +211,10 @@ static DevMap *ProbeDevices(IMMDeviceEnumerator *devenum, EDataFlow flowdir, ALu IMMDeviceCollection *coll; IMMDevice *defdev = NULL; DevMap *devlist; - DWORD count; + UINT count; HRESULT hr; - DWORD idx; - DWORD i; + UINT idx; + UINT i; hr = IMMDeviceEnumerator_EnumAudioEndpoints(devenum, flowdir, DEVICE_STATE_ACTIVE, &coll); if(FAILED(hr)) -- 2.11.4.GIT