Fix incorrect return values in getProcessorInfo

This commit is contained in:
Ryan Huffman 2016-10-03 15:19:03 -07:00
parent b5eb943c1d
commit e213a47814

View file

@ -939,11 +939,11 @@ bool getProcessorInfo(ProcessorInfo& info) {
if (NULL == buffer) { if (NULL == buffer) {
qDebug() << "Error: Allocation failure"; qDebug() << "Error: Allocation failure";
return (2); return false;
} }
} else { } else {
qDebug() << "Error " << GetLastError(); qDebug() << "Error " << GetLastError();
return (3); return false;
} }
} else { } else {
done = true; done = true;