diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-05-10 14:51:41 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-05-18 16:13:28 +0200 |
| commit | 73626ba077230f7a29da3a91fcf69edca94a60b7 (patch) | |
| tree | 388d989e57beaa68b72e4842528a5e0b8b000085 /windows | |
| parent | ddb40d6479ad88a58ea3856e24e6038286dc7382 (diff) | |
| download | mullvadvpn-73626ba077230f7a29da3a91fcf69edca94a60b7.tar.xz mullvadvpn-73626ba077230f7a29da3a91fcf69edca94a60b7.zip | |
Remove temporary binaries used during setup
Diffstat (limited to 'windows')
| -rw-r--r-- | windows/nsis-plugins/src/log/log.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/windows/nsis-plugins/src/log/log.cpp b/windows/nsis-plugins/src/log/log.cpp index a491dc9b2d..6940240137 100644 --- a/windows/nsis-plugins/src/log/log.cpp +++ b/windows/nsis-plugins/src/log/log.cpp @@ -19,6 +19,8 @@ Logger *g_logger = nullptr; namespace { +bool g_pinned = false; + std::wstring PopString() { // @@ -45,6 +47,11 @@ EXTERN_C IMAGE_DOS_HEADER __ImageBase; void PinDll() { + if (g_pinned) + { + return; + } + // // Apparently NSIS loads and unloads the plugin module for EVERY call it makes to the plugin. // This makes it kind of difficult to maintain state. @@ -68,6 +75,8 @@ void PinDll() { LoadLibraryW(self); } + + g_pinned = true; } std::vector<std::wstring> BlockToRows(const std::wstring &textBlock) |
