Skip to content

Commit

Permalink
Update src/modules/powerrename/lib/PowerRenameManager.cpp
Browse files Browse the repository at this point in the history
Address PR comment

Co-authored-by: Jay <65828559+Jay-o-Way@users.noreply.github.com>
  • Loading branch information
stefansjfw and Jay-o-Way committed Aug 17, 2022
1 parent 0e3ef87 commit 6276b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/powerrename/lib/PowerRenameManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ DWORD WINAPI CPowerRenameManager::s_regexWorkerThread(_In_ void* pv)
spItem->PutStatus(PowerRenameItemRenameStatus::ItemNameInvalidChar);
}
// Max file path is 260.
// Ref https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
// Ref https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
else if (lstrlen(path) + (lstrlen(newNameToUse) - lstrlen(originalName)) > 260)
{
spItem->PutStatus(PowerRenameItemRenameStatus::ItemNameTooLong);
Expand Down

0 comments on commit 6276b6c

Please sign in to comment.