* Fix #11802: Compile bug - RegQueryValueExA changed to RegQueryValueEx * Fix #11802: PR #11803 - keep RegQueryValueExA, remove TEXT macro, description needs to be ANSI string
This commit is contained in:
parent
a18f481f99
commit
90e4dba461
1 changed files with 2 additions and 2 deletions
|
@ -284,14 +284,14 @@ struct ggml_backend_cpu_device_context {
|
||||||
&hKey) == ERROR_SUCCESS) {
|
&hKey) == ERROR_SUCCESS) {
|
||||||
DWORD cpu_brand_size = 0;
|
DWORD cpu_brand_size = 0;
|
||||||
if (RegQueryValueExA(hKey,
|
if (RegQueryValueExA(hKey,
|
||||||
TEXT("ProcessorNameString"),
|
"ProcessorNameString",
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&cpu_brand_size) == ERROR_SUCCESS) {
|
&cpu_brand_size) == ERROR_SUCCESS) {
|
||||||
description.resize(cpu_brand_size);
|
description.resize(cpu_brand_size);
|
||||||
if (RegQueryValueExA(hKey,
|
if (RegQueryValueExA(hKey,
|
||||||
TEXT("ProcessorNameString"),
|
"ProcessorNameString",
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
(LPBYTE)&description[0], // NOLINT
|
(LPBYTE)&description[0], // NOLINT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue