1
0
Fork 0

BRIDGE: removed a pointless call to settings.GetValue

This commit is contained in:
Mr. eXoDia 2015-08-13 15:28:33 +02:00
parent 61fa77d3ac
commit 9340cb45a8
1 changed files with 2 additions and 1 deletions

View File

@ -125,8 +125,9 @@ BRIDGE_IMPEXP bool BridgeSettingGet(const char* section, const char* key, char*
return false;
EnterCriticalSection(&csIni);
auto foundValue = settings.GetValue(section, key);
strcpy_s(value, MAX_SETTING_SIZE, settings.GetValue(section, key).c_str());
bool result = foundValue.length() > 0;
if(result)
strcpy_s(value, MAX_SETTING_SIZE, foundValue.c_str());
LeaveCriticalSection(&csIni);
return result;
}