From 63f215e53cecfe2757d3b9321fa22222a6c9ba28 Mon Sep 17 00:00:00 2001 From: LennartAJansson Date: Thu, 13 Oct 2016 09:24:33 +0200 Subject: [PATCH] Removed try - catch in DirectoryIsWritableW --- src/Setup/UpdateRunner.cpp | 5 ----- 1 file changed, 5 deletions(-) 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)