summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2019-11-28 13:16:29 +0100
committerDavid Lönnhager <david.l@mullvad.net>2019-12-03 09:17:30 +0100
commit853487998435b53a26574b262d23f7c7b1c045b7 (patch)
treecb7702cfc77a9a7f6af40e721413b1ac4cd60d99
parent472c70f2e737c1cc22b538af17b36315a48cdd62 (diff)
downloadmullvadvpn-853487998435b53a26574b262d23f7c7b1c045b7.tar.xz
mullvadvpn-853487998435b53a26574b262d23f7c7b1c045b7.zip
Fix return statements in driverlogic
-rw-r--r--windows/nsis-plugins/src/driverlogic/driverlogic.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/windows/nsis-plugins/src/driverlogic/driverlogic.cpp b/windows/nsis-plugins/src/driverlogic/driverlogic.cpp
index c46649846d..1e1ecc0fc7 100644
--- a/windows/nsis-plugins/src/driverlogic/driverlogic.cpp
+++ b/windows/nsis-plugins/src/driverlogic/driverlogic.cpp
@@ -126,6 +126,7 @@ void __declspec(dllexport) NSISCALL EstablishBaseline
{
pushstring(L"Initialize() function was not called or was not successful");
pushint(EstablishBaselineStatus::GENERAL_ERROR);
+ return;
}
try
@@ -247,7 +248,8 @@ void __declspec(dllexport) NSISCALL IdentifyNewAdapter
if (nullptr == g_context)
{
pushstring(L"Initialize() function was not called or was not successful");
- pushint(EstablishBaselineStatus::GENERAL_ERROR);
+ pushint(IdentifyNewAdapterStatus::GENERAL_ERROR);
+ return;
}
try
@@ -298,7 +300,8 @@ void __declspec(dllexport) NSISCALL RollbackTapAliases
if (nullptr == g_context)
{
pushstring(L"Initialize() function was not called or was not successful");
- pushint(EstablishBaselineStatus::GENERAL_ERROR);
+ pushint(RollbackTapAliasesStatus::GENERAL_ERROR);
+ return;
}
try