diff options
3 files changed, 9 insertions, 11 deletions
diff --git a/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx b/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx index 68faed45aac7..c600329ee659 100644 --- a/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx +++ b/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx @@ -21,19 +21,19 @@ #include <shlobj.h> -extern "C" __declspec(dllexport) UINT __stdcall RemoveQuickstarterLink( MSIHANDLE hMSI ) +extern "C" __declspec(dllexport) UINT __stdcall RemoveQuickstarterLink(MSIHANDLE hMSI) { - WCHAR szStartupPath[MAX_PATH]; + WCHAR szStartupPath[MAX_PATH]; - if ( SHGetSpecialFolderPathW( nullptr, szStartupPath, CSIDL_STARTUP, FALSE ) ) + if (SHGetSpecialFolderPathW(nullptr, szStartupPath, CSIDL_STARTUP, FALSE)) { std::wstring sQuickstartLinkPath = szStartupPath; sQuickstartLinkPath += L"\\"; - sQuickstartLinkPath += GetQuickstarterLinkNameW( hMSI ); + sQuickstartLinkPath += GetQuickstarterLinkNameW(hMSI); sQuickstartLinkPath += L".lnk"; - DeleteFileW( sQuickstartLinkPath.c_str() ); + DeleteFileW(sQuickstartLinkPath.c_str()); } return ERROR_SUCCESS; diff --git a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx index 5c68659950ef..8e4166b0d95d 100644 --- a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx +++ b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx @@ -37,7 +37,7 @@ extern "C" __declspec(dllexport) UINT __stdcall CheckInstallDirectory(MSIHANDLE // unsetting all properties - UnsetMsiPropertyW( handle, L"DIRECTORY_NOT_EMPTY" ); + UnsetMsiPropertyW(handle, L"DIRECTORY_NOT_EMPTY"); // 1. Searching for file setup.ini @@ -49,11 +49,11 @@ extern "C" __declspec(dllexport) UINT __stdcall CheckInstallDirectory(MSIHANDLE // std::wstring mystr = L"Searching for " + sSetupIniPath; // MessageBoxW(NULL, mystr.c_str(), L"DEBUG", MB_OK); - if ( IsValidHandle(hdl) ) + if (IsValidHandle(hdl)) { // setup.ini found -> directory cannot be used for installation. - SetMsiPropertyW( handle, L"DIRECTORY_NOT_EMPTY", L"1" ); - SetMsiErrorCode( MSI_ERROR_DIRECTORY_NOT_EMPTY ); + SetMsiPropertyW(handle, L"DIRECTORY_NOT_EMPTY", L"1"); + SetMsiErrorCode(MSI_ERROR_DIRECTORY_NOT_EMPTY); // std::wstring notEmptyStr = L"Directory is not empty. Please choose another installation directory."; // std::wstring notEmptyTitle = L"Directory not empty"; // MessageBoxW(NULL, notEmptyStr.c_str(), notEmptyTitle.c_str(), MB_OK); diff --git a/solenv/clang-format/excludelist b/solenv/clang-format/excludelist index 07cd34532515..c92305942951 100644 --- a/solenv/clang-format/excludelist +++ b/solenv/clang-format/excludelist @@ -11078,12 +11078,10 @@ sdext/source/presenter/PresenterWindowManager.cxx sdext/source/presenter/PresenterWindowManager.hxx setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx setup_native/source/win32/customactions/quickstarter/quickstarter.cxx -setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx setup_native/source/win32/customactions/regactivex/regactivex.cxx setup_native/source/win32/customactions/sellang/sellang.cxx -setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx setup_native/source/win32/customactions/shellextensions/checkpatches.cxx setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx |