aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-08 00:32:35 -0700
committerChris Robinson <[email protected]>2012-10-08 00:32:35 -0700
commit999f0783c5e88ddbcdf258a560814471538bba1f (patch)
tree155a025e2d46237284f9c89a898d1f1d882ced89 /Alc/helpers.c
parent2a6dd2f243a4b1ec72a704158c2465b5551b2034 (diff)
Fix a type conversion warning
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index e84454fb..d99a70e6 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -110,13 +110,14 @@ void FillCPUCaps(ALuint capfilter)
}
}
#elif defined(HAVE_WINDOWS_H)
+ HMODULE k32 = GetModuleHandleA("kernel32.dll");
BOOL (WINAPI*IsProcessorFeaturePresent)(DWORD ProcessorFeature);
- IsProcessorFeaturePresent = GetProcAddress(GetModuleHandleA("kernel32.dll"), "IsProcessorFeaturePresent");
+ IsProcessorFeaturePresent = (BOOL(WINAPI*)(DWORD))GetProcAddress(k32, "IsProcessorFeaturePresent");
if(!IsProcessorFeaturePresent)
ERR("IsProcessorFeaturePresent not available; CPU caps not detected\n");
else
{
- if(IsProcessorFeaturePresent(6/*PF_XMMI_INSTRUCTIONS_AVAILABLE*/))
+ if(IsProcessorFeaturePresent(PF_XMMI_INSTRUCTIONS_AVAILABLE))
caps |= CPU_CAP_SSE;
}
#endif