ArmCPUDetect: close the registry key when finish

This commit is contained in:
driver1998 2019-05-13 19:06:31 +08:00
parent cdaa8d2609
commit c4f200e814

View file

@ -47,6 +47,7 @@ std::string GetCPUBrandString() {
cpu_string = ConvertWStringToUTF8((wchar_t*)buff);
free(buff);
}
RegCloseKey(key);
}
if (cpu_string.empty())