Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2017-03-19 23:35:35 +0300
committerMikkel Krautz <mikkel@krautz.dk>2017-03-19 23:35:35 +0300
commit8d4d5f0437a2f0b0f8a61649736a90f907da3487 (patch)
tree209b86436558c6d9b70ac0ad4cdb7055ae99b4d5 /overlay
parent58c208c2c6f6ac711e7d3d009d666a2d7e5fa9b0 (diff)
overlay: hook up new excludecheck-based overlay exclusion check.
This commit hooks up the 'excludecheck' module into the Windows overlay.
Diffstat (limited to 'overlay')
-rw-r--r--overlay/lib.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp
index 7454b2b85..0b2151caa 100644
--- a/overlay/lib.cpp
+++ b/overlay/lib.cpp
@@ -4,6 +4,7 @@
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include "lib.h"
+#include "excludecheck.h"
#include "overlay_exe/overlay_exe.h"
@@ -543,6 +544,14 @@ static bool dllmainProcAttach(char *procname) {
} else {
checkNoOverlayFile(dir);
checkDebugOverlayFile(dir);
+
+ if (bEnableOverlay) {
+ bEnableOverlay = ExcludeCheckIsOverlayEnabled(absExeName, exeName);
+ }
+
+ if (!bEnableOverlay) {
+ return false;
+ }
}
OSVERSIONINFOEX ovi;