shell/source/win32/SysShExec.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 858c0780563b9dcb1e08f945e427b3fd61af653a Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Jul 3 12:22:51 2024 +0500 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Thu Jul 11 11:42:50 2024 +0200 Update preprocessed_command with the end result of the path checks So we don't rely on ShellExecuteExW doing the same. Change-Id: I83efe08b0e0fe062c6e0402fab8ebbf36e56cadc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169908 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx index e4e10744b2a4..e720a723f754 100644 --- a/shell/source/win32/SysShExec.cxx +++ b/shell/source/win32/SysShExec.cxx @@ -254,7 +254,6 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa throw css::lang::IllegalArgumentException( "XSystemShellExecute.execute, path <" + pathname + "> too long", {}, 0); } - preprocessed_command = pathname; wchar_t path[MAX_LONG_PATH]; wcscpy_s(path, o3tl::toW(pathname.getStr())); for (int i = 0;; ++i) { @@ -337,6 +336,7 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa } } } + preprocessed_command = resulting_path; } }