Skip to content

Commit

Permalink
ArmCPUDetect: close the registry key when finish
Browse files Browse the repository at this point in the history
  • Loading branch information
driver1998 committed May 13, 2019
1 parent cdaa8d2 commit c4f200e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Common/ArmCPUDetect.cpp
Expand Up @@ -47,6 +47,7 @@ std::string GetCPUBrandString() {
cpu_string = ConvertWStringToUTF8((wchar_t*)buff);
free(buff);
}
RegCloseKey(key);
}

if (cpu_string.empty())
Expand Down

0 comments on commit c4f200e

Please sign in to comment.