diff options
author | Chris Robinson <[email protected]> | 2012-02-17 12:31:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-17 12:31:53 -0800 |
commit | eb8be88866d858d85842882f23defd82603eadd6 (patch) | |
tree | ecff51ef38257ae3f01b75f32d4bb51d7f421210 /Alc/backends/mmdevapi.c | |
parent | e43e1bd7f563147c4a06d24ded78f6424fae24f2 (diff) |
Use the correct type to store the count from IMMDeviceCollection_GetCount
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r-- | Alc/backends/mmdevapi.c | 8 |
1 files 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)) |