diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-02 15:11:17 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-02 21:32:56 +0200 |
commit | 79c710438abbaa204df77f9b9ebebddbdf4ab02b (patch) | |
tree | 4e543e58155b2b2c20bbcd8c1c6ec6872a2295c1 /shell | |
parent | 8a6fb1793d98a11114322195dffc608a32216264 (diff) |
Don't pass unused optional agrument
IShellLinkW::GetPath allows to pass nullptr to its third argument:
see https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-ishelllinkw-getpath
Change-Id: Icf1ca402448b8dfcc3a5ab2834341e67e8dc0b8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169869
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/SysShExec.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx index 151c7b01c33e..d67e9b8f3c84 100644 --- a/shell/source/win32/SysShExec.cxx +++ b/shell/source/win32/SysShExec.cxx @@ -289,8 +289,7 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa "IPersistFile.Load failed"); sal::systools::ThrowIfFailed(link->Resolve(nullptr, SLR_UPDATE | SLR_NO_UI), "IShellLink.Resolve failed"); - WIN32_FIND_DATAW wfd; - sal::systools::ThrowIfFailed(link->GetPath(path, std::size(path), &wfd, SLGP_RAWPATH), + sal::systools::ThrowIfFailed(link->GetPath(path, std::size(path), nullptr, SLGP_RAWPATH), "IShellLink.GetPath failed"); } catch (sal::systools::ComError& e) |