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:
authorStefan Hacker <dd0t@users.sourceforge.net>2010-05-04 20:06:22 +0400
committerStefan Hacker <dd0t@users.sourceforge.net>2010-05-04 20:07:33 +0400
commitec31de1b25acddc58c696bca767e2315a17986b6 (patch)
tree9c1ba85bf4fbb4008ff9aa2ed87d203ea1884cdd /overlay
parent532c3f2d2a2c554b7f367c79df3565b83a8f767d (diff)
Add black/whitelist icon loading for Windows. Make lists match on full path as well as executable names
Diffstat (limited to 'overlay')
-rw-r--r--overlay/lib.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp
index 9c06f639e..11bdeb671 100644
--- a/overlay/lib.cpp
+++ b/overlay/lib.cpp
@@ -545,8 +545,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
if (usewhitelist) {
bool onwhitelist = false;
while (buffer[pos] != 0 && pos < sizeof(buffer)) {
- if (_stricmp(p+1, buffer + pos) == 0) {
- fods("Overlay enabled for whitelisted %s", p+1);
+ if (_stricmp(procname, buffer + pos) == 0 || _stricmp(p+1, buffer + pos) == 0) {
+ fods("Overlay enabled for whitelisted '%s'", buffer + pos);
onwhitelist = true;
break;
}
@@ -559,9 +559,9 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
}
} else {
while (buffer[pos] != 0 && pos < sizeof(buffer)) {
- if (_stricmp(p+1, buffer + pos) == 0) {
+ if (_stricmp(procname, buffer + pos) == 0 || _stricmp(p+1, buffer + pos) == 0) {
bBlackListed = true;
- fods("Overlay blacklist entry found for %s", p+1);
+ fods("Overlay blacklist entry found for '%s'", buffer + pos);
return TRUE;
}
pos += strlen(buffer + pos) + 1;
@@ -571,8 +571,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
// If there is no list in the registry fallback to using the default blacklist
fods("Overlay fallback to default blacklist");
while (overlayBlacklist[i]) {
- if (_stricmp(p+1, overlayBlacklist[i])==0) {
- fods("Overlay blacklist entry found for %s", p+1);
+ if (_stricmp(procname, overlayBlacklist[i]) == 0 || _stricmp(p+1, overlayBlacklist[i])==0) {
+ fods("Overlay blacklist entry found for %s", overlayBlacklist[i]);
bBlackListed = true;
return TRUE;
}