Skip to content

Commit 4e6923b

Browse files
Fix ggml-org#11802: PR ggml-org#11803 - keep RegQueryValueExA, remove TEXT macro, description needs to be ANSI string
1 parent 350954b commit 4e6923b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ggml/src/ggml-cpu/ggml-cpu.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@ struct ggml_backend_cpu_device_context {
283283
KEY_READ,
284284
&hKey) == ERROR_SUCCESS) {
285285
DWORD cpu_brand_size = 0;
286-
if (RegQueryValueEx(hKey,
287-
TEXT("ProcessorNameString"),
286+
if (RegQueryValueExA(hKey,
287+
"ProcessorNameString",
288288
NULL,
289289
NULL,
290290
NULL,
291291
&cpu_brand_size) == ERROR_SUCCESS) {
292292
description.resize(cpu_brand_size);
293-
if (RegQueryValueEx(hKey,
294-
TEXT("ProcessorNameString"),
293+
if (RegQueryValueExA(hKey,
294+
"ProcessorNameString",
295295
NULL,
296296
NULL,
297297
(LPBYTE)&description[0], // NOLINT

0 commit comments

Comments
 (0)