diff --git a/src/Setup/UpdateRunner.cpp b/src/Setup/UpdateRunner.cpp index 1cbbcdb13..10d521217 100644 --- a/src/Setup/UpdateRunner.cpp +++ b/src/Setup/UpdateRunner.cpp @@ -138,7 +138,6 @@ bool CUpdateRunner::DirectoryExistsW(wchar_t* szPath) bool CUpdateRunner::DirectoryIsWritableW(wchar_t * szPath) { - try { wchar_t szTempFileName[MAX_PATH]; UINT uRetVal = GetTempFileNameW(szPath, L"Squirrel", 0, szTempFileName); if (uRetVal == 0) { @@ -146,10 +145,6 @@ bool CUpdateRunner::DirectoryIsWritableW(wchar_t * szPath) } DeleteFile(szTempFileName); return true; - } - catch (...) { - return false; - } } int CUpdateRunner::ExtractUpdaterAndRun(wchar_t* lpCommandLine, bool useFallbackDir)