Properly check if /proc/cpuinfo opened

This commit is contained in:
Chris Robinson
2016-09-08 02:02:09 -07:00
parent 742f181595
commit c3c283a0b5
+1 -1
View File
@@ -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
{