From 25392ea6042242eceeb95cca29ca18784cf0ee7b Mon Sep 17 00:00:00 2001 From: Javier Date: Wed, 15 Jan 2025 14:57:54 -0600 Subject: [PATCH] propsheet: add a CodeQL supression comment (#18431) CodeQL is raising errors when building Visual Studio since they have a dependency on Windows Terminal for our integrated terminal. The issue raised by CodeQL refers to a non-constant string format, but in this case the string comes from a resource file and should be considered constant. --- src/propsheet/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propsheet/console.cpp b/src/propsheet/console.cpp index d6058440590..efce7206c02 100644 --- a/src/propsheet/console.cpp +++ b/src/propsheet/console.cpp @@ -115,7 +115,7 @@ void SaveConsoleSettingsIfNeeded(const HWND hwnd) LoadStringW(ghInstance, IDS_LINKERROR, awchBuffer, ARRAYSIZE(awchBuffer)); StringCchPrintf(szMessage, ARRAYSIZE(szMessage), - awchBuffer, + awchBuffer, // CodeQL [SM01734] Pulled from a resource file and cannot be a string literal gpStateInfo->LinkTitle); LoadStringW(ghInstance, IDS_LINKERRCAP, awchBuffer, ARRAYSIZE(awchBuffer));