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:
authorThorvald Natvig <slicer@users.sourceforge.net>2010-03-08 21:42:54 +0300
committerThorvald Natvig <slicer@users.sourceforge.net>2010-03-08 21:42:54 +0300
commit29088dcabaf49b34d53f8e2a0380cbc6aa88c09f (patch)
tree021269707a7f288468068101313ecb7442ca834d /overlay
parent505e046c68f19e01014e7c0dfdbebca99f3531fe (diff)
Indent, changelog, submodule and language update
Diffstat (limited to 'overlay')
-rw-r--r--overlay/lib.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp
index 496fcab3e..3eb1fc831 100644
--- a/overlay/lib.cpp
+++ b/overlay/lib.cpp
@@ -528,9 +528,9 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
buffsize = sizeof(buffer);
success = (RegOpenKeyExA(HKEY_CURRENT_USER, "Software\\Mumble\\Mumble\\overlay", NULL, KEY_READ, &key) == ERROR_SUCCESS) &&
- (RegQueryValueExA(key, "usewhitelist", NULL, NULL, (LPBYTE)buffer, &buffsize) == ERROR_SUCCESS);
+ (RegQueryValueExA(key, "usewhitelist", NULL, NULL, (LPBYTE)buffer, &buffsize) == ERROR_SUCCESS);
- if(success) {
+ if (success) {
usewhitelist = (_stricmp(buffer, "true") == 0);
buffsize = sizeof(buffer);
success = (RegQueryValueExA(key, usewhitelist ? "whitelist" : "blacklist", NULL, NULL, (LPBYTE)buffer, &buffsize) == ERROR_SUCCESS);
@@ -554,8 +554,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
bBlackListed = true;
return TRUE;
}
- }
- else {
+ } else {
while (buffer[pos] != 0 && pos < sizeof(buffer)) {
if (_stricmp(p+1, buffer + pos) == 0) {
bBlackListed = true;