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:
authorBenjamin Jemlich <pcgod@users.sourceforge.net>2010-07-26 10:26:54 +0400
committerBenjamin Jemlich <pcgod@users.sourceforge.net>2010-07-26 10:26:54 +0400
commit8f0a2bdbb67e59c97751323e617baf946e54c728 (patch)
treef94dc9c523e081ceb945cdd5a8285b57ea162ad5 /overlay
parente0d1de4e46e6ad530024a6878b1102d17e8aaf5a (diff)
Revert "Overlay blacklist wmpnscfg.exe and fix the mumble_ol.dll's debug output" because it breaks the overlay
This reverts commit c24b79e5f026446ab57b67a660a1251681f36c20.
Diffstat (limited to 'overlay')
-rw-r--r--overlay/lib.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp
index 45ca17021..11bdeb671 100644
--- a/overlay/lib.cpp
+++ b/overlay/lib.cpp
@@ -580,25 +580,20 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
}
}
- char fname[sizeof(procname)];
- char *fp = fname + (procname - p);
- strcpy_s(fname, sizeof(procname), procname);
-
- strcpy_s(fp+1, 64, "nooverlay");
- HANDLE h = CreateFile(fname, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ strcpy_s(p+1, 64, "nooverlay");
+ HANDLE h = CreateFile(procname, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (h != INVALID_HANDLE_VALUE) {
CloseHandle(h);
- fods("Overlay disable %s found", fname);
- bBlackListed = true;
+ fods("Overlay disable %s found", procname);
return TRUE;
}
- strcpy_s(fp+1, 64, "debugoverlay");
+ strcpy_s(p+1, 64, "debugoverlay");
- h = CreateFile(fname, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ h = CreateFile(procname, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (h != INVALID_HANDLE_VALUE) {
CloseHandle(h);
- fods("Overlay debug %s found", fname);
+ fods("Overlay debug %s found", procname);
bDebug = TRUE;
}
}