From 1db04b650194f090ba1b52ae48f61277737c19f0 Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Wed, 13 Nov 2024 15:15:44 -0800 Subject: [PATCH] Fix incorrect cch param (#4873) PathCchCombineEx's cchPathOut is a character count, not a byte count --- dev/MRTCore/mrt/Core/src/MRM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/MRTCore/mrt/Core/src/MRM.cpp b/dev/MRTCore/mrt/Core/src/MRM.cpp index b1760990fb..cdf750cc47 100644 --- a/dev/MRTCore/mrt/Core/src/MRM.cpp +++ b/dev/MRTCore/mrt/Core/src/MRM.cpp @@ -1023,7 +1023,7 @@ STDAPI MrmGetFilePathFromName(_In_opt_ PCWSTR filename, _Outptr_ PWSTR* filePath std::unique_ptr outputPath(rawOutputPath, MrmFreeResource); RETURN_IF_FAILED(PathCchCombineEx( outputPath.get(), - size, + length, path.get(), filenameToUse, PATHCCH_ALLOW_LONG_PATHS));