diff options
author | Chris Robinson <[email protected]> | 2016-09-08 02:02:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-09-08 02:02:09 -0700 |
commit | c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1 (patch) | |
tree | 3c6e075bd563cb0be413a01a445ba815c19e69f7 /Alc | |
parent | 742f181595e5891f1ed132aa403f939b767a2f28 (diff) |
Properly check if /proc/cpuinfo opened
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/helpers.c | 2 |
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 { |