summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2018-11-06 22:02:35 +0100
committerOdd Stranne <odd@mullvad.net>2018-11-09 13:03:05 +0100
commit8197696d5174be4cf696d4d6f4d61b700580489e (patch)
treef17e46a81b19d707fa8d81e56795f736f3e5cd86
parent652a11d3c508ad296d60c37ac0b84fa11451c81d (diff)
downloadmullvadvpn-8197696d5174be4cf696d4d6f4d61b700580489e.tar.xz
mullvadvpn-8197696d5174be4cf696d4d6f4d61b700580489e.zip
Complement with catch-all in outermost code layer
-rw-r--r--windows/nsis-plugins/src/driverlogic/driverlogic.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/windows/nsis-plugins/src/driverlogic/driverlogic.cpp b/windows/nsis-plugins/src/driverlogic/driverlogic.cpp
index 0888711897..2aedaf41ee 100644
--- a/windows/nsis-plugins/src/driverlogic/driverlogic.cpp
+++ b/windows/nsis-plugins/src/driverlogic/driverlogic.cpp
@@ -172,6 +172,11 @@ void __declspec(dllexport) NSISCALL EstablishBaseline
pushstring(common::string::ToWide(err.what()).c_str());
pushint(EstablishBaselineStatus::GENERAL_ERROR);
}
+ catch (...)
+ {
+ pushstring(L"Unspecified error");
+ pushint(EstablishBaselineStatus::GENERAL_ERROR);
+ }
}
//
@@ -218,6 +223,11 @@ void __declspec(dllexport) NSISCALL IdentifyNewInterface
pushstring(common::string::ToWide(err.what()).c_str());
pushint(IdentifyNewInterfaceStatus::GENERAL_ERROR);
}
+ catch (...)
+ {
+ pushstring(L"Unspecified error");
+ pushint(IdentifyNewInterfaceStatus::GENERAL_ERROR);
+ }
}
//