From c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 8 Sep 2016 02:02:09 -0700 Subject: [PATCH] Properly check if /proc/cpuinfo opened --- Alc/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/helpers.c b/Alc/helpers.c index 4ffda46cf..26ed535a0 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 {