ini.patch

Jan DolinĂ¡r, 04/26/2014 02:08 PM

Download (588 Bytes)

View differences:

uppsrc/Core/Ini.cpp (working copy)
5 5
String ReplaceEnvVars(CParser& p) {
6 6
	const VectorMap<String, String>& vars = Environment();
7 7
	String r;
8
	const char* s = p.GetPtr();
9 8
	while (!p.IsEof()) {
10 9
		if(p.Char2('$', '$')) {
11 10
			r.Cat('$');
......
15 14
			if(q >= 0)
16 15
				r.Cat(vars[q]);
17 16
		} else {
18
			p.SkipTerm();
19
			r.Cat(s, p.GetPtr());
17
			r.Cat(p.GetChar());
20 18
		}
21
		s = p.GetPtr();
22 19
	}
23 20
	return r;
24 21
}