diff --git a/Source/Core/Common/IniFile.h b/Source/Core/Common/IniFile.h index 6f16d74306..ed20cd6fa0 100644 --- a/Source/Core/Common/IniFile.h +++ b/Source/Core/Common/IniFile.h @@ -123,6 +123,8 @@ public: { if (Exists(sectionName, key)) return GetOrCreateSection(sectionName)->Get(key, value, defaultValue); + else + *value = defaultValue; return false; }