Skip to content

Commit 676b935

Browse files
Fix #11802: Compile bug - RegQueryValueExA changed to RegQueryValueEx
1 parent b9ab0a4 commit 676b935

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
@@ -283,14 +283,14 @@ struct ggml_backend_cpu_device_context {
283283
KEY_READ,
284284
&hKey) == ERROR_SUCCESS) {
285285
DWORD cpu_brand_size = 0;
286-
if (RegQueryValueExA(hKey,
286+
if (RegQueryValueEx(hKey,
287287
TEXT("ProcessorNameString"),
288288
NULL,
289289
NULL,
290290
NULL,
291291
&cpu_brand_size) == ERROR_SUCCESS) {
292292
description.resize(cpu_brand_size);
293-
if (RegQueryValueExA(hKey,
293+
if (RegQueryValueEx(hKey,
294294
TEXT("ProcessorNameString"),
295295
NULL,
296296
NULL,

0 commit comments

Comments
 (0)