mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Shrunk some string buffer size.
This commit is contained in:
		| @@ -697,7 +697,7 @@ std::vector<Gdiplus::REAL> CConfigParser::ReadFloats(LPCTSTR section, LPCTSTR ke | ||||
|  | ||||
| int CConfigParser::ReadInt(LPCTSTR section, LPCTSTR key, int defValue) | ||||
| { | ||||
| 	TCHAR buffer[256]; | ||||
| 	TCHAR buffer[32]; | ||||
| 	swprintf(buffer, L"%i", defValue); | ||||
|  | ||||
| 	const std::wstring& result = ReadString(section, key, buffer); | ||||
| @@ -752,7 +752,7 @@ int CConfigParser::ReadFormula(const std::wstring& result, double* resultValue) | ||||
|  | ||||
| Color CConfigParser::ReadColor(LPCTSTR section, LPCTSTR key, const Color& defValue) | ||||
| { | ||||
| 	TCHAR buffer[256]; | ||||
| 	TCHAR buffer[128]; | ||||
| 	swprintf(buffer, L"%i, %i, %i, %i", defValue.GetR(), defValue.GetG(), defValue.GetB(), defValue.GetA()); | ||||
|  | ||||
| 	const std::wstring& result = ReadString(section, key, buffer); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 spx
					spx