Minor changes.

This commit is contained in:
Birunthan Mohanathas
2011-09-24 13:10:31 +00:00
parent 1609fb7f59
commit a7cbc1a504
5 changed files with 26 additions and 40 deletions

View File

@ -22,6 +22,7 @@
#include "Rainmeter.h"
#include "System.h"
#include "Measure.h"
#include "resource.h"
extern CRainmeter* Rainmeter;
@ -1033,7 +1034,7 @@ void CConfigParser::ReadIniFile(const std::vector<std::wstring>& iniFileMappings
{
if (depth > 100) // Is 100 enough to assume the include loop never ends?
{
MessageBox(NULL, L"It seems that you have created an infinite loop with @include.\nPlease check your skin.", APPNAME, MB_OK | MB_TOPMOST | MB_ICONERROR);
MessageBox(NULL, GetString(ID_STR_INCLUDEINFINITELOOP), APPNAME, MB_OK | MB_TOPMOST | MB_ICONERROR);
return;
}