win: fix const correctness compiler error (#5049)

This commit is contained in:
apocelipes 2026-03-12 04:14:59 +08:00 committed by GitHub
parent a43e543dbf
commit 6cdf71da80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,7 +627,7 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos_ptr, int* cpu_count_ptr) {
uv__convert_utf16_to_utf8(cpu_brand,
cpu_brand_size / sizeof(WCHAR),
&(cpu_info->model));
(char**) &(cpu_info->model));
}
uv__free(sppi);