diff options
| author | David Lönnhager <david.l@mullvad.net> | 2019-12-11 13:29:50 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2019-12-16 15:16:19 +0100 |
| commit | 11ab41a02e34c0f3907faa5891f64da366bbc8c2 (patch) | |
| tree | cdef956018d9dd61e654f2157b879dced9b52ce6 /windows/nsis-plugins/src/registry/registry.cpp | |
| parent | 99eb972eb7c995216ce0b337b14c94cd89254ab4 (diff) | |
| download | mullvadvpn-11ab41a02e34c0f3907faa5891f64da366bbc8c2.tar.xz mullvadvpn-11ab41a02e34c0f3907faa5891f64da366bbc8c2.zip | |
Get rid of duplicate nsis constants
Diffstat (limited to 'windows/nsis-plugins/src/registry/registry.cpp')
| -rw-r--r-- | windows/nsis-plugins/src/registry/registry.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/windows/nsis-plugins/src/registry/registry.cpp b/windows/nsis-plugins/src/registry/registry.cpp index e94c0540ee..7d60e3cb9c 100644 --- a/windows/nsis-plugins/src/registry/registry.cpp +++ b/windows/nsis-plugins/src/registry/registry.cpp @@ -1,4 +1,5 @@ #include "stdafx.h" +#include "../error.h" #include <windows.h> #include <libcommon/string.h> #include <libcommon/registry/registry.h> @@ -43,11 +44,6 @@ std::wstring PopString() // // MoveKey "HKLM\Software\A" "HKLM\Software\B" // -enum class MoveKeyStatus -{ - GENERAL_ERROR = 0, - SUCCESS -}; void __declspec(dllexport) NSISCALL MoveKey ( @@ -73,16 +69,16 @@ void __declspec(dllexport) NSISCALL MoveKey typedDestination.subkey(), common::registry::RegistryView::Force64); pushstring(L""); - pushint(MoveKeyStatus::SUCCESS); + pushint(NsisStatus::SUCCESS); } catch (std::exception &err) { pushstring(common::string::ToWide(err.what()).c_str()); - pushint(MoveKeyStatus::GENERAL_ERROR); + pushint(NsisStatus::GENERAL_ERROR); } catch (...) { pushstring(L"Unspecified error"); - pushint(MoveKeyStatus::GENERAL_ERROR); + pushint(NsisStatus::GENERAL_ERROR); } } |
