Skip to content

Commit

Permalink
Fix error in loop that excludes Ampere Altra Processor for Windows Arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
iremyux committed Apr 11, 2024
1 parent f42f5ea commit a2149af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arm/windows/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static struct woa_chip_info* get_system_info_from_registry(void) {
cpuinfo_log_error("Registry read error");
return NULL;
}
for (uint32_t i = 0; i < (uint32_t)woa_chip_name_last; i++) {
for (uint32_t i = 0; i <= (uint32_t)woa_chip_name_last; i++) {
size_t compare_length = wcsnlen(woa_chips[i].chip_name_string, CPUINFO_PACKAGE_NAME_MAX);
int compare_result = wcsncmp(text_buffer, woa_chips[i].chip_name_string, compare_length);
if (compare_result == 0) {
Expand Down

0 comments on commit a2149af

Please sign in to comment.