Skip to content

Commit 29559ee

Browse files
sheldonrobinsonNeoZhangJianyu
authored andcommitted
Fix ggml-org#11802: Compile bug - RegQueryValueExA changed to RegQueryValueEx (ggml-org#11803)
* Fix ggml-org#11802: Compile bug - RegQueryValueExA changed to RegQueryValueEx * Fix ggml-org#11802: PR ggml-org#11803 - keep RegQueryValueExA, remove TEXT macro, description needs to be ANSI string
1 parent cf1c48e commit 29559ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

0 commit comments

Comments
 (0)