summaryrefslogtreecommitdiff
path: root/plugins/RemovePersonalSettings/src/rps.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-25 09:05:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-25 09:05:39 +0000
commitd6ed23e489d106cd4b06a03c820706467e853f49 (patch)
treeb0d17dcee8b9b6b561d20f7fec02b426423f0d9d /plugins/RemovePersonalSettings/src/rps.cpp
parent7487284ac14c755d0cf34b510f75c5a3dead96e6 (diff)
end of version zoo
git-svn-id: http://svn.miranda-ng.org/main/trunk@7880 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/RemovePersonalSettings/src/rps.cpp')
-rw-r--r--plugins/RemovePersonalSettings/src/rps.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp
index 5379b6e442..181248d616 100644
--- a/plugins/RemovePersonalSettings/src/rps.cpp
+++ b/plugins/RemovePersonalSettings/src/rps.cpp
@@ -528,21 +528,17 @@ void DisablePlugins()
BOOL GetSettingBool(const char *section, const char *key, BOOL defaultValue)
{
char tmp[16];
-
- if ( GetPrivateProfileString(section, key, defaultValue ? "true" : "false", tmp, sizeof(tmp), gIniFile) == 0 ) {
+ if (GetPrivateProfileString(section, key, defaultValue ? "true" : "false", tmp, sizeof(tmp), gIniFile) == 0)
return defaultValue;
- }
- else {
- return stricmp(tmp, "true") == 0;
- }
+
+ return stricmp(tmp, "true") == 0;
}
BOOL GetSettings(const char *section, char *buffer, size_t bufferSize)
{
buffer[0] = '\0\0';
-
- return GetPrivateProfileSection(section, buffer, bufferSize, gIniFile) != 0;
+ return (BOOL)GetPrivateProfileSection(section, buffer, bufferSize, gIniFile) != 0;
}