1
0
Fork 0

and a few more.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3921
This commit is contained in:
Peter Veenstra 2015-07-04 18:37:14 +00:00
parent bb604c1d77
commit db0a72cd4d

View file

@ -632,7 +632,7 @@ void CONFIG::Run(void) {
if ((equpos != std::string::npos) &&
((spcpos == std::string::npos) || (equpos < spcpos))) {
// If we have a '=' possibly before a ' ' split on the =
pvars.insert(++pvars.begin(),pvars[0].substr(equpos+1));
pvars.insert(pvars.begin()+1,pvars[0].substr(equpos+1));
pvars[0].erase(equpos);
// As we had a = the first thing must be a property now
Section* sec=control->GetSectionFromProperty(pvars[0].c_str());
@ -646,7 +646,7 @@ void CONFIG::Run(void) {
if ((spcpos != std::string::npos) &&
((equpos == std::string::npos) || (spcpos < equpos))) {
// ' ' before a possible '=', split on the ' '
pvars.insert(++pvars.begin(),pvars[0].substr(spcpos+1));
pvars.insert(pvars.begin()+1,pvars[0].substr(spcpos+1));
pvars[0].erase(spcpos);
}
// check if the first parameter is a section or property