Skip to content

Commit

Permalink
Fix incorrect cch param (#4873)
Browse files Browse the repository at this point in the history
PathCchCombineEx's cchPathOut is a character count, not a byte count
  • Loading branch information
Scottj1s authored Nov 13, 2024
1 parent 5938f86 commit 1db04b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/MRTCore/mrt/Core/src/MRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ STDAPI MrmGetFilePathFromName(_In_opt_ PCWSTR filename, _Outptr_ PWSTR* filePath
std::unique_ptr<wchar_t, decltype(&MrmFreeResource)> outputPath(rawOutputPath, MrmFreeResource);
RETURN_IF_FAILED(PathCchCombineEx(
outputPath.get(),
size,
length,
path.get(),
filenameToUse,
PATHCCH_ALLOW_LONG_PATHS));
Expand Down

0 comments on commit 1db04b6

Please sign in to comment.