From: Sheldon Robinson Date: Tue, 11 Feb 2025 15:55:45 +0000 (-0500) Subject: Fix #11802: Compile bug - RegQueryValueExA changed to RegQueryValueEx (llama/11803) X-Git-Tag: upstream/1.7.4+203~81 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=91d02de3323887e7412814bce4d3093832b5d57c;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Fix #11802: Compile bug - RegQueryValueExA changed to RegQueryValueEx (llama/11803) * Fix #11802: Compile bug - RegQueryValueExA changed to RegQueryValueEx * Fix #11802: PR #11803 - keep RegQueryValueExA, remove TEXT macro, description needs to be ANSI string --- diff --git a/ggml/src/ggml-cpu/ggml-cpu.cpp b/ggml/src/ggml-cpu/ggml-cpu.cpp index 2ccb4b47..87d7ce53 100644 --- a/ggml/src/ggml-cpu/ggml-cpu.cpp +++ b/ggml/src/ggml-cpu/ggml-cpu.cpp @@ -284,14 +284,14 @@ struct ggml_backend_cpu_device_context { &hKey) == ERROR_SUCCESS) { DWORD cpu_brand_size = 0; if (RegQueryValueExA(hKey, - TEXT("ProcessorNameString"), + "ProcessorNameString", NULL, NULL, NULL, &cpu_brand_size) == ERROR_SUCCESS) { description.resize(cpu_brand_size); if (RegQueryValueExA(hKey, - TEXT("ProcessorNameString"), + "ProcessorNameString", NULL, NULL, (LPBYTE)&description[0], // NOLINT