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));