summaryrefslogtreecommitdiffhomepage
path: root/windows/nsis-plugins/src/cleanup/cleaningops.cpp
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2020-01-28 14:34:10 +0100
committerOdd Stranne <odd@mullvad.net>2020-01-28 14:34:10 +0100
commite13e04f5104557d8722666fc599502e9c336bdcc (patch)
tree02696149b415b628c4291274e8a4fe22b12f9dd4 /windows/nsis-plugins/src/cleanup/cleaningops.cpp
parentc48e088f5cd7bf101db33e117d8ea7acf86c9580 (diff)
parent5ba8f62fb81f13f7ffa9b816ba33cbb814ce1417 (diff)
downloadmullvadvpn-e13e04f5104557d8722666fc599502e9c336bdcc.tar.xz
mullvadvpn-e13e04f5104557d8722666fc599502e9c336bdcc.zip
Merge branch 'less-macro-magic'
Diffstat (limited to 'windows/nsis-plugins/src/cleanup/cleaningops.cpp')
-rw-r--r--windows/nsis-plugins/src/cleanup/cleaningops.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/windows/nsis-plugins/src/cleanup/cleaningops.cpp b/windows/nsis-plugins/src/cleanup/cleaningops.cpp
index 88cf20ad55..ed6e8dbf9d 100644
--- a/windows/nsis-plugins/src/cleanup/cleaningops.cpp
+++ b/windows/nsis-plugins/src/cleanup/cleaningops.cpp
@@ -3,6 +3,7 @@
#include <libcommon/filesystem.h>
#include <libcommon/fileenumerator.h>
#include <libcommon/string.h>
+#include <libcommon/error.h>
#include <libcommon/memory.h>
#include <libcommon/security.h>
#include <libcommon/process/process.h>
@@ -80,7 +81,7 @@ std::wstring GetSystemUserLocalAppData()
if (nullptr == processHandle)
{
- throw std::runtime_error("Failed to access the \"LSASS\" process");
+ THROW_ERROR("Failed to access the \"LSASS\" process");
}
HANDLE processToken;
@@ -91,7 +92,7 @@ std::wstring GetSystemUserLocalAppData()
if (FALSE == status)
{
- throw std::runtime_error("Failed to acquire process token for the \"LSASS\" process");
+ THROW_ERROR("Failed to acquire process token for the \"LSASS\" process");
}
sd += [&]()