Skip to content

Commit 1db04b6

Browse files
authored
Fix incorrect cch param (#4873)
PathCchCombineEx's cchPathOut is a character count, not a byte count
1 parent 5938f86 commit 1db04b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/MRTCore/mrt/Core/src/MRM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ STDAPI MrmGetFilePathFromName(_In_opt_ PCWSTR filename, _Outptr_ PWSTR* filePath
10231023
std::unique_ptr<wchar_t, decltype(&MrmFreeResource)> outputPath(rawOutputPath, MrmFreeResource);
10241024
RETURN_IF_FAILED(PathCchCombineEx(
10251025
outputPath.get(),
1026-
size,
1026+
length,
10271027
path.get(),
10281028
filenameToUse,
10291029
PATHCCH_ALLOW_LONG_PATHS));

0 commit comments

Comments
 (0)