diff options
author | Chris Robinson <[email protected]> | 2009-08-28 06:33:59 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-28 06:33:59 -0700 |
commit | b444dea63b007b52a5eb5c2861c1e7091f31fe9d (patch) | |
tree | b57177a6d6ea6040c0adfba2021d754ff4f7669c /Alc/dsound.c | |
parent | 1816c8bd37a9ff95827d95338963a9a14603543e (diff) |
Fix compilation for Windows
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c index e6df32da..dcad35ef 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -476,8 +476,6 @@ static BOOL CALLBACK DSoundEnumDevices(LPGUID guid, LPCSTR desc, LPCSTR drvname, void alcDSoundInit(BackendFuncs *FuncList) { - HRESULT hr; - *FuncList = DSoundFuncs; #ifdef _WIN32 @@ -530,13 +528,16 @@ void alcDSoundDeinit(void) void alcDSoundProbe(int type) { - if(!dsound_handle) + if(!ds_handle) return; if(type == DEVICE_PROBE) AppendDeviceList(dsDevice); else if(type == ALL_DEVICE_PROBE) { + HRESULT hr; + ALuint i; + for(i = 0;i < NumDevices;++i) free(DeviceList[i].name); free(DeviceList); |