Use the correct type to store the count from IMMDeviceCollection_GetCount

This commit is contained in:
Chris Robinson
2012-02-17 12:31:53 -08:00
parent e43e1bd7f5
commit eb8be88866
+4 -4
View File
@@ -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))