aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-09-08 02:02:09 -0700
committerChris Robinson <[email protected]>2016-09-08 02:02:09 -0700
commitc3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1 (patch)
tree3c6e075bd563cb0be413a01a445ba815c19e69f7 /Alc
parent742f181595e5891f1ed132aa403f939b767a2f28 (diff)
Properly check if /proc/cpuinfo opened
Diffstat (limited to 'Alc')
-rw-r--r--Alc/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 4ffda46c..26ed535a 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -234,7 +234,7 @@ void FillCPUCaps(ALuint capfilter)
#endif
#ifdef HAVE_NEON
FILE *file = fopen("/proc/cpuinfo", "rt");
- if(file)
+ if(!file)
ERR("Failed to open /proc/cpuinfo, cannot check for NEON support\n");
else
{