SHGFI_EXETYPE doesn't need SHFILEINFOW
Change-Id: Ib18d5a3992174c0b56f11970d02515bc6d0ea615 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169907 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
afa5ade8b5
commit
d7d14e91f7
1 changed files with 2 additions and 2 deletions
|
@ -266,12 +266,12 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa
|
|||
+ ") failed",
|
||||
{}, 0);
|
||||
}
|
||||
SHFILEINFOW info;
|
||||
if (SHGetFileInfoW(path, 0, &info, sizeof info, SHGFI_EXETYPE) != 0)
|
||||
if (SHGetFileInfoW(path, 0, nullptr, 0, SHGFI_EXETYPE) != 0)
|
||||
{
|
||||
throw css::security::AccessControlException(
|
||||
"XSystemShellExecute.execute, cannot process <" + aCommand + ">", {}, {});
|
||||
}
|
||||
SHFILEINFOW info;
|
||||
if (SHGetFileInfoW(path, 0, &info, sizeof info, SHGFI_ATTRIBUTES) == 0)
|
||||
{
|
||||
throw css::lang::IllegalArgumentException(
|
||||
|
|
Loading…
Reference in a new issue